Commit Graph

8647 Commits (a30a8d21ce46c8e206cc9158e4384834f29f517e)

Author SHA1 Message Date
cybersphinx a30a8d21ce Replace svn with vcs. 2011-03-06 19:23:33 +01:00
cybersphinx d2eb159216 Get rid of the SVN_WC_SWITCHED stuff. 2011-03-06 18:57:12 +01:00
cybersphinx 809d0ac456 Get rid of the SVN_LOW_REV stuff. 2011-03-06 18:46:38 +01:00
safety0ff c5928e8cf3 Fix MSVC builds broken in f1495ac. 2011-03-05 16:54:52 -05:00
safety0ff 509fe7bb83 Use WIN32_LIBS instead of IBERTY_LIBS when configuring libbfd.
Fixes statically linking libbfd. Closes #2514.
2011-03-04 12:43:00 -05:00
safety0ff d3e993da31 Use patch instead of sed to fix extraneous comma in quesoglc pkg-config file. 2011-03-04 12:33:06 -05:00
Cyp 12e5d2a2b8 Make droids go exactly where the mouse was clicked.
Useful for people that are very picky with where their droids go.
Previous behaviour was to go to the centre of the tile that was clicked on.
2011-03-03 23:23:42 +01:00
Cyp afb524e923 Fix occasional failure to find the tile under the mouse.
The problem was integer truncation during division in inQuad.
2011-03-03 23:23:42 +01:00
Cyp d1f7e50c7f Fix tanks on blocking tiles unable to move.
Tanks shouldn't really end up on blocking tiles, though.

Fixes ticket:2478 and ticket:2512.
2011-03-03 23:23:42 +01:00
dak180 c9f97fe8d8 Provide a backup download location. 2011-03-03 14:40:14 -05:00
dak180 e6fd3c3c90 Remove -Wc++-compat, to keep pace with Cyp. 2011-03-03 12:53:11 -05:00
Cyp 92db46314f Remove -Wc++-compat, since everything that will be C++ is now already C++. 2011-03-03 17:51:22 +01:00
safety0ff 635643e101 Add openal cflags to sequence lib build, fixes linking with static openal-soft. 2011-03-02 22:36:11 -05:00
Cyp 23f46a51ac Open gates before bumping nose. 2011-03-02 12:59:56 +01:00
Cyp 50c02e9944 Fix all droids passing through all structures not allied to host.
Hopefully now both gates and regular structures should work correctly now.
2011-03-02 12:35:59 +01:00
Cyp 2875a59981 Simplify mapFloodFill.
Reduced memory usage by an order of magnitude and allocations by several orders of magnitude. And the function should be easier to understand, now.
2011-03-02 11:55:16 +01:00
dak180 6afff6e0c0 Use PhysFS 2.0.2 for the mac builds.
Refs #1066.
2011-03-01 21:08:17 -05:00
safety0ff f1495ac6ef Convert command line options to utf-8 and use unicode directory routines (Windows).
Closes #1066.
2011-03-01 20:48:33 -05:00
safety0ff eb60d35864 Add physfs 2+ cross compilation. 2011-03-01 20:45:29 -05:00
Cyp a6e2291025 Update ally research information in real-time.
Old behaviour was to wait for you to click on something (for example, to start the research), before showing that the ally was already researching.
2011-02-28 23:33:57 +01:00
Cyp 9d4c9f89ed Fix research sharing.
Fixes ticket:2508.
2011-02-28 23:21:04 +01:00
Cyp 48f0020455 Fix gates.
It is now possible to go through gates when, and only when, they are open, and friendly gates are always ignored by pathfinding.

Fixes ticket:2486.
2011-02-28 22:58:19 +01:00
Cyp f18f984522 Fix cyborgs and inital truck design being displayed as free.
Fixes ticket:2510.
2011-02-28 20:51:14 +01:00
Cyp e3ac1cef9c Don't allow body points to become negative when demolishing. 2011-02-28 20:28:18 +01:00
Cyp eeb413d9e3 Don't send GAME_BUILDFINISHED when in synch.
Was causing the second module to instantly finish, with the structure at 10% body points, if queueing two module build orders in a row for the same structure.

Fixes ticket:2480.
2011-02-28 20:16:30 +01:00
Cyp 676f453332 Do memset of NetPlay.games array, not MAX_PLAYERS elements of NetPlay.games.
MAX_PLAYERS was less than MaxGames, so it wouldn't memset too much, at least.
2011-02-28 20:06:30 +01:00
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