Commit Graph

8606 Commits (938bd28a5618d3b879bf22db0c19af19b5e98e57)

Author SHA1 Message Date
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
cybersphinx 7d18ab826d Fix cross-build. 2011-02-06 03:38:28 +01:00
cybersphinx 1db938cd0b Set a window icon.
lib/framework/wz2100icon.h created from the 32x32 icon from
icons/warzone2100.ico by the Gimp's C code export.

Closes #2465.
2011-02-05 18:23:00 +01:00
cybersphinx ce3de81d64 Configurable downloads directory for the cross-build script.
Can be set as "DOWNLOADS=/where/ever/you/want" in win32/__BUILD_CONFIG.USER.
2011-02-05 18:00:39 +01:00
cybersphinx 7b0316696e Add cast to fix compilation with -Werror. 2011-02-05 18:00:39 +01:00
Giel van Schijndel e7d17ecda0 exceptionhandler: print *exact* faulting instruction
Use the signal handler's `sigcontext` to find the exact stack frame and
instruction address where the fatal signal ocurred, then disassemble
those exact locations (rather than hoping the 4th frame is the offending
one).

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2011-02-05 16:47:34 +01:00
Cyp 451b98d8da Make DACTION_ROTATETOATTACK handle moving targets better.
Previous behaviour was to sit there watching the target for a long time, before remembering to attack.
2011-02-04 00:20:46 +01:00
Cyp 1726aacd4e Avoid VTOL overkill as well as regular droid overkill. 2011-02-03 22:54:36 +01:00
Cyp 6983eecf7e Make VTOL circling less weird. 2011-02-03 22:07:05 +01:00
Cyp b37d7f2510 Remove unused targetOrigin parameter from aiBestNearestTarget. 2011-02-03 20:45:14 +01:00
Cyp e69482f473 When patrolling, look for targets slightly out of range.
Fixes patrolling VTOLs flying past targets before deciding to shoot.
2011-02-03 20:35:19 +01:00
Cyp f1dc0f29e2 Fix VTOLs unable to bomb stuff due to a 3d instead of 2d range check.
Made the range check in lineOfFire ignore the height difference, like other range checks, so that VTOLs can drop bombs without having to land first.
2011-02-03 19:35:29 +01:00
Cyp 6b0c659cf6 Fix player team and colour remaining after player leaves. 2011-02-03 17:57:50 +01:00
Per Inge Mathisen 29c9695338 Hide the right menu item when we want to hide targetting visualization in non-debug mode. Fixes missing audio in-game options. 2011-01-30 23:26:04 +01:00
buginator 87c9f38dc3 Revert "Add guard to YY_NO_UNISTD_H definition."
This reverts commit f1ebbe6eba.

Revert "Set never-interactive option in lexers so that Flex doesn't use isatty() function from unistd."

This reverts commit c046bb88e5.

see ticket:2444 for more info.
close ticket:2444
2011-01-30 01:40:53 -05:00
buginator fb626e0b59 Removed neglected project files for VS2k8.
Use VS2k5 project files to convert to VS2k8 or VS2k10.

NOTE: If you are using VS2K10, you *MUST* recompile all libs in the devpackage, or it will not work.
At this time, I am currently keeping VS2k5 files up-to-date.
2011-01-30 01:26:44 -05:00