2025-09-01 22:11 CEST

spring: develop a6d8338a Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
tvo tvo develop 2006-02-07 21:48:25 develop 908b7026
Changeset Added template SendData functions to CNet, which make all code
using net->SendData and serverNet->SendData a _lot_ more readable/
maintainable.

Fixed a bug in receiving of NETMSG_RANDSEED and in receiving of
NETMSG_PLAYERLEFT (Game.cpp). Both referenced netbuf instead of inbuf.

Fixed a potential buffer overflow in SendSystemMessage by
vsprintf->VSNPRINTF.

Fixed a potential bug when player types ".team<enter>" instead of
".team N<enter>", with N a playernum.

Removed netbuf. Note that if MSVC complains about arrays of variable
size (even tho they're init'ed with const int), replace them by a
new[] delete[] sequence. Don't readd netbuf, as the server and the
client use the SendData function, this will lead to race conditions.



git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@710 37977431-3df6-0310-b722-df95706aa16b
mod - rts/ExternalAI/AICallback.cpp Diff ] File ]
mod - rts/Game/Game.cpp Diff ] File ]
mod - rts/Game/GameServer.cpp Diff ] File ]
mod - rts/Game/SelectedUnits.cpp Diff ] File ]
mod - rts/Game/UI/GUI/GUIcontroller.cpp Diff ] File ]
mod - rts/Game/UI/GUI/GUIgame.cpp Diff ] File ]
mod - rts/Game/UI/GUI/GUIresourceBar.cpp Diff ] File ]
mod - rts/Game/UI/GUI/GUIsharingDialog.cpp Diff ] File ]
mod - rts/Game/UI/ResourceBar.cpp Diff ] File ]
mod - rts/Game/UI/ShareBox.cpp Diff ] File ]
mod - rts/Game/UI/StartPosSelecter.cpp Diff ] File ]
mod - rts/Rendering/InMapDraw.cpp Diff ] File ]
mod - rts/System/Net.cpp Diff ] File ]
mod - rts/System/Net.h Diff ] File ]