Commit graph

16000 commits

Author SHA1 Message Date
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
joris
819f84de34 [UnitTest]: Some unittest code using UnitTest++. (Not yet integrated in CMake). 2013-03-14 16:03:29 +01:00
joris
d73c670b9a Some clean up in network code. 2013-03-14 14:34:29 +01:00
joris
844cf7f97c Remove unused global NetLastSocket. 2013-03-13 16:17:51 +01:00
joris
dfc0e048d9 [Html]:Fix docu about coding style (introduce AStyle). 2013-03-09 13:19:48 +01:00
joris
c66fe472c8 Split UIHandleButtonDown into smaller functions 2013-03-07 15:13:53 +01:00
joris
e86166f5a8 [AStyle] 2013-03-04 16:41:49 +01:00
joris
ad0b8c620d Remove redondant condition. 2013-03-04 16:34:17 +01:00
joris
f8a4e309f2 Fix gcc warnings 2013-03-03 20:44:07 +01:00
cybermind
f5f28ea5cf [+] Ability to call some ui functions from lua
[+] Ability to scroll through idle workers list
[-] Fixed ButtonButton handling in pie menu
[-] Fixed UserButtons not clearing
2013-03-03 21:23:19 +06:00
cybermind
11e825b9e3 [+] Added an ability to define custon user in-game UI buttons
[-] Fixed popup drawing while pie menu is active
2013-02-25 18:53:02 +06:00
cybermind
0f41a9e3b3 [*] Optimize button popup drawing by caching its width and height
[*] More correct grayscale formula
[-] Fixed crash wheh program can't read file in debug mode
[-] Fixed crash with spawn-missile when target unit is dead
[-] Fixed crash then CUnit::TTL killing dead unit
2013-02-24 17:41:49 +06:00
Joris
24fe5a7fab [AStyle] 2013-02-11 11:09:26 +01:00
Joris
d02100c20a Fix gcc warning.
Fix typo in comment.
2013-02-11 10:58:02 +01:00
cybermind
82eed1ab1f [+] Added autocast by variable priority (heal the wounded ones, bloodlust for strong ones...) 2013-02-10 13:47:03 +06:00
Joris
102a369dcf Fix gcc warnings when !defined(USE_OPENGL) && !defined(USE_GLES) 2013-02-09 04:47:52 +01:00
Pali Rohár
d6efb9f190 FindSDL_gles.cmake - Remove using CMakePushCheckState which is not in CMake 2.6 2013-02-08 23:09:48 +01:00
Pali Rohár
781af593cb Fix cmake dependences for version-generated.h
* Seems like different versions of CMake and GNU Make doing different things and does not resolve dependeces correctly
* add_custom_command in old version of CMake cannot depends on non-file target
* Old version of CMake does not resolve dependency stratagus.cpp --> version.h --> version-generated.h and trying to compile stratagus.cpp before version-generated.h
* And when generating doxygen documentation, it cannot find rule how to generate version-generated.h, so in stratagus_HDRS file version-generated.h must be twice

* I belive that now compilation is working with CMake 2.6, 2.8, GNU Make 3.8 and Ninja
2013-02-08 23:06:10 +01:00