Commit Graph

8207 Commits (bf38eb51ea431d9197746d656ac342d1fad02b47)

Author SHA1 Message Date
Cyp bf38eb51ea Add branch switching hack to remaining Makefile.am files. 2010-12-06 00:19:30 +01:00
Cyp 32a0830d64 Fix possibly undefined behaviour. 2010-12-06 00:19:30 +01:00
Per Inge Mathisen 843332f1f5 Kill some dead code. Fix some indentation. Make HCI a tiny bit less horrible. 2010-12-05 23:20:09 +01:00
Cyp 06acd4c399 Fix weird getQwertyKey function which incorrectly assumed KEY_W = KEY_Q+1 and so on.
Changelog: Fix Alt+Letter / Shift+Letter only saving/recalling camera positions if A ≤ Letter ≤ L.
2010-12-05 22:16:07 +01:00
Cyp 74c3872aa0 Fix broken FIXME_CAST_ASSIGN pointer-int cast magic being broken on 64-bit big-endian platforms.
Don't know whether anyone was actually building this on 64-bit big-endian, but better to fix it.

Was undefined behaviour anyway, due to pointer-aliasing rules.

Fixed the remaining pointer-aliasing errors and removed -Wno-strict-aliasing and -Wno-pointer-to-int-cast.
2010-12-05 20:59:04 +01:00
buginator c617bfd26c MSVC only change, using STLport to bypass the severe performance
hits with MSVC's STL code.

The change does *not* break MS's STL usage, so you can freely swap
between both of them.

When adding STL functions, it is best you use MS's STL for the extra
debugging code they throw in, it actually does catch some errors.
Once you don't need the extra debugging code, then I use STLport, since
MS's STL code can't disable all the checks, and it has a huge performance
hit.
2010-12-05 13:59:40 -05:00
Per Inge Mathisen 940efd25fe semperfi: Combine the template lists for the two tech trees, so that air AIs do not end up build crap ground units late game. 2010-12-05 16:34:31 +01:00
Per Inge Mathisen 4f85821bab Cache texture coordinate calculation on game start instead of doing them each frame. Do defensive structure stretching in the vertex shader. See ticket:2310 2010-12-05 16:17:26 +01:00
Per Inge Mathisen 6d12963fc5 semperfi: Make sure we build a factory first, even if we need power generators. Always help build the closest structure.
Grab trucks from wider distance to accomodate maps that place starting trucks far away from base.
2010-12-05 15:56:26 +01:00
Per Inge Mathisen d9861ff326 Improving debugging of order states. 2010-12-05 15:47:47 +01:00
dak180 55d67e7886 png changed their download path. 2010-12-04 23:04:20 -05:00
Per Inge Mathisen 7de25a9d5b Lay the groundwork for a more modern component drawing system. Removes support for OpenGL 1.x. See ticket:2310 2010-12-04 15:57:26 +01:00
Per Inge Mathisen f8a7cde68a Add missing skirmish overrides for multiplayer with scavengers. I have no idea why there are skirmish wrf files in
the single player data files to begin with, nor why these do not contain scavengers. This fixes ticket:2369 reported
by hao that scavengers do not work in 3/5/6/7-player maps.
2010-12-04 15:28:55 +01:00
cybersphinx e08ac6f7d2 Turkish translation update by Ayhan Görgülü.
Closes #2376.
2010-12-02 21:51:17 +01:00
Cyp 2fb77ad168 Fix scrolling up and to the right on some machines.
Broke in previous commit.

Also, make scrolling decelerate quickly also when trying to scroll in the opposite direction.

Fixes ticket:2372.
2010-12-02 20:42:43 +01:00
Cyp 5fc3f6b5d7 Fix some GUI dependence on gameTime, and make camera hovering and scrolling be more numerically stable.
The exact solution to the camera height  d²/dt² height = -ACCEL_CONSTANT * (height - desiredHeight) - VELOCITY_CONSTANT * d/dt height  ended up a bit complex.
2010-12-01 13:43:06 +01:00
Cyp bc30ced33e Fix VTOLs getting stuck where structures have been destroyed. 2010-11-30 23:37:16 +01:00
Cyp 5d366cbd3b Add a bit more syncDebug. 2010-11-30 23:37:16 +01:00
Cyp e26882b446 Fix host crash when someone leaves pre-game lobby screen.
Broke in 2ad6ff0855.
2010-11-30 23:37:16 +01:00
cybersphinx ba1bbcfb37 Italian translation update by Alpha93.
Refs #2367.
2010-11-30 22:43:07 +01:00
cybersphinx d6e2ad0c56 Put ifdefs around Linux-specific header/function.
Closes #2366.
(cherry picked from commit 2d4d2d807d98fd9cd3b49891faf0b34976330915)
2010-11-30 01:56:05 +01:00
Cyp a7f468cc7c Add map name to desynch dumps. 2010-11-29 17:57:31 +01:00
Cyp 29e240f3f7 Fix defenses not being able to be built next to oil wells without derricks.
Try to simplify logic which decides what can be built next to what.
2010-11-29 17:37:18 +01:00
Cyp 2ad6ff0855 Fix desynch when player leaves, due to clearing buildings at different gameTimes. 2010-11-29 12:48:51 +01:00
Cyp b8b42f931e Simplify tile->psObject update of features. 2010-11-29 01:46:23 +01:00
Cyp 2571cfecf2 Process own GAME_FEATURES messages, fixes placing features in debug menu. 2010-11-29 01:46:20 +01:00
Cyp 747d77819b Remove unused AUXMAP structure. 2010-11-29 01:46:16 +01:00
Cyp d242e2f1d0 Fix bad pointer when loading maps with horizontal cyborg factories.
Probably the cause of some desynchs and crashes.
2010-11-29 01:46:04 +01:00
Cyp a8f6faaed0 Fix spurious desynch at gameTime 102, due to not clearing desynch logs between games.
Also, no need to duplicate function name strings, which are link-time constants.
2010-11-29 01:45:19 +01:00
safety0ff 77a46d31c9 Use the base dataset name instead of texture<->tileset mapping to determine tileset.
Closes #2355, #2193.
2010-11-28 16:11:49 -05:00
cybersphinx 50e55403dd Polish translation update by Emdek.
Closes #1347.
2010-11-28 19:20:55 +01:00
dak180 ec0d8eadbf Fix the mac builds broken by Cyp in rfccb548124. 2010-11-27 18:16:41 -05:00
Cyp f98ef53bfc Simplify movement code slightly and reduce rounding errors.
Used division instead of right-shift, since right-shift of negative numbers is implementation defined. (At least GCC does an arithmetic shift.)

Removed two unused enum values.

Reviewed by Per.
2010-11-27 22:58:22 +01:00
Per Inge Mathisen e3293267a4 Now that we have logical updates, we can simplify the calculations slightly. Patch reviewed by Cyp. Closes ticket:2360 2010-11-27 16:49:22 +01:00
Per Inge Mathisen 301fea4188 Difficulty level should only apply to campaign, not to single player skirmish. 2010-11-27 14:46:08 +01:00
Per Inge Mathisen 6bace8bdf5 Remove unused variables for weapons. 2010-11-25 22:32:46 +01:00
Per Inge Mathisen dc4c88e5ee Fix hoverwreck with zero body points 2010-11-25 20:19:30 +01:00
Per Inge Mathisen bc1fd6cbbc Do not keep unused structure variables in memory, and document them as being unused in the data header. 2010-11-25 20:05:42 +01:00
Cyp 1699da10cf Fix clients and/or host crashing due to the last client clicking ready too many times. Based on patch by Buggy.
Throw in a few checks for changing player position or team, too.

Closes ticket:2346.

Changelog: Fixed crash for all players when the last player clicks "Ready" too many times.
2010-11-25 12:58:28 +01:00
buginator 3ede70143e Re: fccb548124
Really remove all references to it.
2010-11-24 21:01:12 -05:00
Cyp fccb548124 Remove completely useless src/environ.[ch], and all references to it. 2010-11-24 21:19:34 +01:00
Cyp 7c14ee39c4 Initialise structure direction before using the structure width/breadth in auxStructureBlocking().
Fixes unsynchronised errors in the blocking map when building cyborg factories or lassats.

Closes ticket:2290. Refs ticket:2203.
2010-11-24 21:13:14 +01:00
Cyp 21aaef1dbc When clearing AUXBITS_THREAT, clear AUXBITS_AATHREAT too.
Refs ticket:2203.
2010-11-24 21:13:12 +01:00
Cyp c18fa650bb Make aquatic ground heights be deterministic.
Don't know whether aquatic ground heights could affect game state, but changing in case, and since it means less to debug.

Also, removed unused parts of src/environ (which is pretty much everything).
src/environ is now even more useless, and should probably be deleted in a future commit.
2010-11-24 21:13:02 +01:00
cybersphinx 39085d62fd Update translations. 2010-11-24 17:59:51 +01:00
cybersphinx bdcb2f6f2d Korean translation update by urgood2.
Closes #2098.
2010-11-24 17:59:48 +01:00
cybersphinx b7cb308f30 Allow process to be traced for the crash handler.
Some distributions disallow this (newer Ubuntu for example), so the gdb call
didn't output anything useful. Based on a patch by Safety0ff.
(cherry picked from commit 023ea5b2cea6f57b6690ac7d25fd472aefc911eb)
2010-11-24 16:49:50 +01:00
Cyp e9cbdace22 Check with syncDebug that blocking and danger maps are identical. 2010-11-24 12:23:03 +01:00
Buginator 83f1a892e1 Only clear player name when needed.
(When player drops / leaves, you will still see their name instead of the default color name).

Also fix a log line.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11495 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 847edec81737e6c6a42e4c91aede5c99b9a755ce)
2010-11-22 16:06:29 +01:00
Cyp 502c8a19ac Fix danger map threading, pointer-to-int compile -Werror warning, and dangerFloodFill running for player -1.
Refs ticket:2203.
2010-11-22 16:05:33 +01:00