Commit graph

16017 commits

Author SHA1 Message Date
joris
6b56c67135 Use GameNetCycle (GameCycle / NetworkUpdates) instead of GameCycle as index of NetworkIn, NetworkSyncSeeds, NetworkSyncHashs.
NetworkInSync is bool instead of int.
NetworkLags vlaue has been divided by NetworkUpdates.
2013-04-09 13:59:34 +02:00
joris
128c42210b Fix HandleSuicideClick over network. 2013-04-08 16:36:28 +02:00
joris
cdb606fae6 Move some network globals into a singleton.
Remove configuration from the command line of NetworkLag, NetworkUpdates.
2013-04-07 16:40:32 +02:00
joris
346339d536 Clean up network.cpp and update some old docu about protocol format. 2013-04-06 19:20:54 +02:00
joris
64b51308a0 Don't use anymore global NetworkFildes inside Client/Server. 2013-04-05 21:05:33 +02:00
joris
af53391cee Add classes CHost and CUDPSocket. 2013-04-04 23:59:29 +02:00
joris
3c8cbe8e84 Add a simple main.cpp to ease the use of unitTest. 2013-04-03 18:24:22 +02:00
joris
afe77ef505 Use NetSocketReady in sdl.cpp 2013-04-03 17:58:26 +02:00
joris
b705f868cd Some clean up in master.cpp 2013-04-03 17:56:59 +02:00
joris
eff26b9969 Fix compilation of disabled code. 2013-04-03 11:32:15 +02:00
joris
f50cc657be [AStyle] 2013-04-03 11:09:28 +02:00
joris
72e97ebe40 Don't use Parameters::Instance.LocalPlayerName inside CClient/CServer. 2013-04-03 11:05:49 +02:00
joris
8df4949abc Don't use (global) ServerSetupState and LocalSetupState inside CClient and CServer.
Simplify CInitMessage_Config.
2013-04-02 20:25:15 +02:00
joris
9e6958e19b Replace CInitMessage by more specific classes. 2013-04-01 12:54:48 +02:00
Pali Rohár
829e03df97 Rename GrayScale to GScale because GrayScale is #define in X11/X.h 2013-03-31 17:28:10 +02:00
Pali Rohár
cf12e0153c Use SDL_HWSURFACE and SDL_HWPALETTE on all platforms when opengl or gles is disabled and use SDL_GL_DOUBLEBUFFER for opengl 2013-03-31 17:13:16 +02:00
cybermind
9af911808b [*] Grayscale works in OpenGL too 2013-03-31 14:59:38 +06:00
cybermind
0ec029274b [-] Fixed crash when no file was used for missile 2013-03-31 12:19:47 +06:00
cybermind
b29331a933 [*] Particle ticks bound to GameCycle 2013-03-31 12:18:43 +06:00
joris
3908bc44b8 Some refactoring, renaming in netconnect.cpp 2013-03-30 11:09:34 +01:00
joris
51dcae71ab Add CClient::Send_* and CServer::Send_*. 2013-03-29 16:20:54 +01:00
cybermind
c0fea4f139 [-] Fixed crash when showing unit name popup for destroyed unit 2013-03-29 16:27:43 +06:00
cybermind
a2aa433dbc [*] Write current GameSettings table into savegame 2013-03-29 16:26:15 +06:00
cybermind
89eddbe415 [-] Fixed assert when saving a game with workers collecting resources from outside 2013-03-29 16:22:19 +06:00
joris
10a6d42124 Commit missing file in last commit 2013-03-27 21:06:18 +01:00
joris
7ebefd95b9 Add CInitMessage(uint8_t type, uint8_t subtype) 2013-03-27 00:35:01 +01:00
joris
e18421875a All net messages begin with messageType. 2013-03-26 00:03:43 +01:00
joris
8de9c57c85 Some more factoring code. 2013-03-25 14:54:51 +01:00
joris
ace4352019 Split CClient::Update.
Some member renaming.
Move out some global from CClient.
2013-03-24 20:09:59 +01:00
joris
0447aa9814 Fix some cppcheck warnings. 2013-03-24 14:58:32 +01:00
joris
8c58c7b05e Move network messages into its own file. 2013-03-24 14:57:58 +01:00
joris
0969b1cb27 Move code into new classes CClient and CServer.
Remove unused NetworkExitClientConnect(), NetworkExitServerConnect().
2013-03-23 20:35:07 +01:00
cybermind
4b24ae42f8 [-] Removed COrder_Still::AutoTarget, which fixed a lot of bugs for UnitActionStandGround
[-] AI should cast spells only from "ai-cast" specifications and only once per time
2013-03-23 19:37:17 +06:00
cybermind
6f25644f70 [*] Access to os table through lua (used for os.time in math.randomseed) 2013-03-23 19:32:25 +06:00
joris
1fdba9323f should fix compilation on 64bits. 2013-03-22 19:39:18 +01:00
joris
232f6dec47 Move LastFrame from CServerSetup into NetworkState. 2013-03-20 19:58:57 +01:00
joris
44cddab80b Some clean up + add const. 2013-03-20 15:06:16 +01:00
joris
1b571b9883 Add fflush in DebugPrint and Abort to avoid missing log. 2013-03-19 18:51:52 +01:00
joris
94f20ffea4 Some refactoring of network code. 2013-03-19 18:49:50 +01:00
joris
0a6e1760d5 Add missing [] to delete.
Some clean up.
2013-03-19 18:42:31 +01:00
joris
edf4c14348 Fix VS DEBUGASSERT in font.cpp 2013-03-19 18:39:27 +01:00
joris
393473e46e Fix AiGetSuitableDepot to update correctly its parameter. 2013-03-19 18:37:28 +01:00
joris
3500d739e6 Fix gcc warnings. 2013-03-17 19:49:12 +01:00
cybermind
542cb5a5d4 [-] Fixed crash when handlind action for unit killed by TTL
[-] Fixed crash for pience missiles which are gone outside of map
[-] Fixed crash when saving invalid order
[-] Fixed crash when changing owner for dead unit
[-] Don't help to summoned units for AI
2013-03-17 12:02:27 +06:00
cybermind
ed541eb8ed [*] More effective way to expand depots for AI 2013-03-17 11:58:26 +06:00
cybermind
a857caab92 [+] Added ExactValue (to check exact value) and ExceptValue (to pass all values except this) in spell conditions 2013-03-17 11:55:11 +06:00
cybermind
b28d8f548b [-] Fixed compilation on MSVC 2013-03-17 11:52:21 +06:00
joris
8534741819 Clean up:
Remove unused NetworkArg, NetworkStatus.
Remove global NetworkNumInterfaces, NetLocalAddrs
2013-03-16 14:33:11 +01:00
joris
8b407bedf4 Clean up and refactoring 2013-03-15 19:53:42 +01:00
joris
0d548c9903 Remove global NetLastHost, NetLastPort. 2013-03-15 14:41:13 +01:00