*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@474 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -310,7 +310,7 @@ void CBot::SendBotInfo()
|
||||
((editmode ? CS_EDITING :
|
||||
m_pMyEnt->state)<<5);
|
||||
|
||||
ENetPacket *packet = enet_packet_create (NULL, MAXTRANS, 0);
|
||||
ENetPacket *packet = enet_packet_create(NULL, MAXTRANS, 0);
|
||||
ucharbuf p(packet->data, packet->dataLength);
|
||||
|
||||
putint(p, SV_BOTUPDATE);
|
||||
|
||||
@@ -222,7 +222,7 @@ void c2sinfo(dynent *d) // send update to the server
|
||||
if(clientnum<0) return; // we haven't had a welcome message from the server yet
|
||||
if(lastmillis-lastupdate<40) return; // don't update faster than 25fps
|
||||
ENetPacket *packet = enet_packet_create (NULL, MAXTRANS, 0);
|
||||
ucharbuf p(packet->data, MAXTRANS);
|
||||
ucharbuf p(packet->data, packet->dataLength);
|
||||
bool serveriteminitdone = false;
|
||||
if(toserverpwd)
|
||||
{
|
||||
|
||||
@@ -201,7 +201,7 @@ void sendmap(char *mapname)
|
||||
void getmap()
|
||||
{
|
||||
ENetPacket *packet = enet_packet_create(NULL, MAXTRANS, ENET_PACKET_FLAG_RELIABLE);
|
||||
ucharbuf p(packet->data, MAXTRANS);
|
||||
ucharbuf p(packet->data, packet->dataLength);
|
||||
putint(p, SV_RECVMAP);
|
||||
enet_packet_resize(packet, p.length());
|
||||
sendpackettoserv(packet);
|
||||
|
||||
@@ -112,7 +112,7 @@ void mapmsg(char *s) { s_strncpy(hdr.maptitle, s, 128); };
|
||||
COMMAND(saycommand, ARG_VARI);
|
||||
COMMAND(mapmsg, ARG_1STR);
|
||||
|
||||
#ifndef WIN32
|
||||
#if !defined(WIN32) && !defined(__APPLE__)
|
||||
#include <X11/Xlib.h>
|
||||
#include <SDL_syswm.h>
|
||||
#endif
|
||||
@@ -126,7 +126,7 @@ void pasteconsole()
|
||||
s_strcat(commandbuf, cb);
|
||||
GlobalUnlock(cb);
|
||||
CloseClipboard();
|
||||
#else
|
||||
#elif !defined(__APPLE__)
|
||||
SDL_SysWMinfo wminfo;
|
||||
SDL_VERSION(&wminfo.version);
|
||||
wminfo.subsystem = SDL_SYSWM_X11;
|
||||
|
||||
@@ -228,7 +228,7 @@ void pingservers()
|
||||
{
|
||||
serverinfo &si = servers[i];
|
||||
if(si.address.host == ENET_HOST_ANY) continue;
|
||||
ucharbuf p(ping, MAXTRANS);
|
||||
ucharbuf p(ping, sizeof(ping));
|
||||
putint(p, lastmillis);
|
||||
buf.data = ping;
|
||||
buf.dataLength = p.length();
|
||||
|
||||
@@ -109,7 +109,7 @@ void serverms(int mode, int numplayers, int minremain, char *smapname, int secon
|
||||
buf.dataLength = sizeof(pong);
|
||||
len = enet_socket_receive(pongsock, &addr, &buf, 1);
|
||||
if(len < 0) return;
|
||||
ucharbuf p(&pong[len], MAXTRANS-len);
|
||||
ucharbuf p(&pong[len], sizeof(pong)-len);
|
||||
putint(p, PROTOCOL_VERSION);
|
||||
putint(p, mode);
|
||||
putint(p, numplayers);
|
||||
|
||||
Reference in New Issue
Block a user