Commit Graph

8621 Commits (239eebec0063cd4f7b4b5dacb9de7d18105d47e5)

Author SHA1 Message Date
Cyp 239eebec00 Remove GAME_SECONDARY in favour of GAME_DROIDINFO, which is sent more efficiently for multiple droids.
Instead of one message per droid, it sends one message for all droids, with the list of droids encoded as droid ID deltas.
2011-02-27 20:20:43 +01:00
Cyp 31c6586f9c Fix crash in moveBestTarget when sMove.Position == 0.
The moveBestTarget function could be called while sMove.Position == 0, if moveCalcBlockingSlide detected a gate and changed the status to MOVEPAUSE.

To reproduce the crash (before this commit), add a bunch of gates and a bunch of droids, and have the droids patrol near the gates, and wait a while.

Renamed sMove.Position to sMove.pathIndex to reduce confusion and to verify all uses of it.
2011-02-27 12:10:40 +01:00
Cyp 97097da97a Try to prevent patrolling/scouting droids from forgetting to stop when encountering something. 2011-02-27 11:19:10 +01:00
Per Inge Mathisen 639f735b27 Add some kind of checking, so that things don't get lasatted by bunkers. 2011-02-27 10:56:01 +01:00
Per Inge Mathisen 88788ad501 Move kick button back into its proper place. Closes ticket:2506 2011-02-27 10:26:26 +01:00
safety0ff bfe900b78e Use QuesoGLC's pkg-config file for build configuration.
Closes #2458.
2011-02-26 14:38:04 -05:00
Cyp 3889f42f25 If a droid has ID 0, change it to the arbitrary ID 0xFEDBCA98 after the assertion.
Fixes ticket:2498.
2011-02-26 19:18:36 +01:00
Cyp 879c6ea4d8 Don't syncDebug isHumanPlayer.
Caused desynch dumps when players leave.

Fixes ticket:2501.
2011-02-26 19:02:59 +01:00
Cyp 7f55f5a048 Save/restore psBlockMap and psAuxMap during missions, to prevent weird crashes at the end of missions.
Mission stuff is very confusing, but whether or not it is correct now, it at least doesn't crash.
2011-02-26 01:44:57 +01:00
Cyp 3125124804 Make IdToStruct search mission data, so factories work during missions. 2011-02-26 01:44:09 +01:00
cybersphinx 6a10c06fd3 Update translations. 2011-02-25 23:36:03 +01:00
Cyp cc150fc2f7 Exit if shaders are not supported, and revert "Hack in the team colour when shaders aren't supported."
This reverts commit e0617af5e6.

If you are building from source, and you cannot upgrade your graphics drivers, you can revert this revert, and the game may be playable for now.
2011-02-25 23:01:03 +01:00
Cyp a7730ccd15 Change "typedef struct {...} Blah;" into "struct Blah {...};".
Removed a few structs due to disuse.
2011-02-25 21:30:13 +01:00
Cyp 1c44b38fbd Use std::swap in swapMissionPointers. 2011-02-25 19:57:40 +01:00
Cyp ae2ce18314 Bump year.
sed -i 's/\(Copyright (C) .*-201\)0\( *Warzone 2100 Project\)/\11\2/' {src,lib/*{,/*}}/*.{c,cpp,h,y,l}
2011-02-25 18:45:27 +01:00
Cyp 938bd28a56 Don't deselect all but 1 truck, when selecting demolish from the build menu. 2011-02-25 18:22:08 +01:00
Cyp 6aedc62db4 Fix assertion when doing line build and some non-construction droids are selected. 2011-02-25 17:53:21 +01:00
Cyp f335b2173a Fix VTOLs sometimes forgetting to rearm before flying off.
A VTOL would be waiting for a rearming pad to become available, but also happen to be covering a rearming pad, and get asked to clear off since it wasn't actually using that pad. The VTOLs would then get confused, and fly off as if it had rearmed itself already.
2011-02-25 02:23:35 +01:00
Cyp 2817c7142b Fix FEAT_SKYSCRAPER features on TER_CLIFFFACE tiles remaining as blocking for air units even after being destroyed. 2011-02-25 00:52:13 +01:00
cybersphinx dfcd1657a9 Portuguese and Brazilian translation update by Tucalipe.
Closes #2489.
2011-02-25 00:22:31 +01:00
cybersphinx 1d5fa7e5d4 French translation update by Gilles J. Seguin. 2011-02-25 00:22:31 +01:00
Cyp ef4d4bbd1d Fix ping in pre-game lobby screen.
Ping frequency was based on gameTime, which is constant and meaningless if the game has not started.

Fixes ticket:2375.
2011-02-24 23:15:57 +01:00
Cyp a01cc343c5 Fix scores usually being displayed as 0 in multiplayer.
Scores were 0 due to some complicated score synchronisation code.
Fixed mainly by removing a lot of the score synchronisation code.
2011-02-24 22:53:27 +01:00
Cyp 00cece64ae Add assertion that droid ID is not 0.
Seems that weird stuff is possible when a droid has an ID of 0.
Finding and fixing all places that assume a droid cannot have an ID of 0 might be more correct, but adding an assertion is easier.
2011-02-23 14:41:32 +01:00
cybersphinx 54ca45e8f4 Increase recycled experience storage.
Also make constants for the unit limits. The experience storage is a separate
value, to be able to change unit limits without breaking savegames.
2011-02-23 01:12:45 +01:00
Cyp daaf52c778 Fix research being free due to incorrect shift direction in aiUpdateStructure.
Was >>32, should have been <<32, broke in 466943b783.

Cleaned up some casts a bit, too.
2011-02-23 00:09:26 +01:00
Cyp 4fec447170 Add more syncDebug when objects are damaged.
Also, added syncDebugObject function for tracing objects of unspecified type.
2011-02-21 20:22:48 +01:00
Cyp e0617af5e6 Hack in the team colour when shaders aren't supported.
Ugly, but better than nothing.
2011-02-20 22:10:12 +01:00
Cyp e6298083f0 Deselect droids immediately, before waiting for droid repair states to be synchronised.
Fixes ticket:2495.
2011-02-20 17:36:10 +01:00
Per Inge Mathisen 48ff5e55d2 Fix 2 cpp check warnings reported by pabs3. 2011-02-18 15:54:39 +01:00
Cyp 733ab6e911 Fix compilation with C++0x compilers.
Can't use nullptr, until switching to C++0x.
2011-02-15 14:28:08 +01:00
cybersphinx 37616320bd A bit of cleanup.
make_dir() does both the PHYSFS_mkdir() and strcpy().
2011-02-15 02:22:23 +01:00
cybersphinx 3a56299517 Add a version-independent path for videos on Macs. 2011-02-14 22:57:52 +01:00
cybersphinx b29fe379f8 Remove some unused variables found by gcc 4.6. 2011-02-14 22:13:11 +01:00
Cyp 577cbbf874 Fix weird logfile date due to Jan..Dec = 0..11 in struct tm. 2011-02-14 22:08:11 +01:00
dak180 7a44272305 Set up some analyser options for potential later use. 2011-02-13 18:31:17 -05:00
safety0ff 84740c4390 Reset color to white before rendering decals rather than after having changed it.
Fixes #2487.
2011-02-13 15:21:41 -05:00
Cyp e862a993cb Split droid template list into game-state list and UI list.
This simplifies things a bit and fixes a desynch.
2011-02-13 18:57:25 +01:00
Per Inge Mathisen 37fd0bb4f1 Do not load AI data twice when loading savegames, once from scratch and once from savegame. 2011-02-12 23:17:32 +01:00
Cyp 22dbc657bd Make power generator effect addition constant instead of proportional to FPS, and halve smoke trails.
It should now be possible to look at power generators and rearming pads without the FPS dropping significantly.
The FPS should no longer drop asymptotically to 0 when the game is paused due to lag and there is a power generator or rearming pad on-screen.
2011-02-12 22:53:06 +01:00
Cyp bea4607858 Bump arbitrary structure limit of any structure type from 255 to 4294967295.
255 limit was probably due to the important need to save 12 bytes of memory per structure type per player.
2011-02-12 22:29:32 +01:00
dak180 e87b3c01a9 Merge remote-tracking branch 'refs/remotes/origin/master' 2011-02-12 12:09:34 -05:00
dak180 48e30ae04f Use StaticAnalyzer builds for the buildbots. 2011-02-12 12:01:00 -05:00
cybersphinx caee6e3da7 Change video download location to Sourceforge for the Windows installer. 2011-02-10 21:20:29 +01:00
cybersphinx 7232b97fc8 Use a tarball for quesoglc instead of svn export. 2011-02-09 22:55:23 +01:00
cybersphinx d3219d93cf Change the backup download location for the cross-build.
Use wzhost.wz2100.net instead of fontys.nl.
2011-02-09 21:58:41 +01:00
Cyp 67dfa3c2e1 Fix bogus "incompatible mod" kick in games with scavengers.
Fixes ticket:2477.
2011-02-09 18:21:40 +01:00
dak180 8989f42afe Add a category to the mac's app bundle. 2011-02-08 00:40:14 -05:00
Per Inge Mathisen 294335e194 Clean up the IdToNN() functions. Patch reviewed by Cyp. 2011-02-06 16:14:20 +01:00
Per Inge Mathisen a9169a0339 Constify some template function string parameters. 2011-02-06 13:01:39 +01:00