Commit Graph

2588 Commits (b9b1a4bac74d321f9cf0d97b5cd552b6ce6b8362)

Author SHA1 Message Date
Buginator 054ea6be3b Missed a directory to remove from search path
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7690 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-09 23:44:24 +02:00
Buginator 0e7ef7d20c Add missing mod directories, and remove 'autoload' from trunk as well.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7686 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-09 23:44:23 +02:00
Buginator f2a6546000 Don't allow 2x experience points in campaign games if it is supposed to be only for MP games.
Fixes ticket:562


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7685 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-09 23:44:22 +02:00
Buginator 61e9a25ea2 Allow mist fog type in campaign games. (Fog type is set by user preferences)
Patch by Vermithrax

closes ticket:561


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7684 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-09 23:44:22 +02:00
Per Inge Mathisen eaec14b3c0 Do not strip away unused players in scavenger multiplayer mode anymore.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7683 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-09 23:44:21 +02:00
Per Inge Mathisen 79ed9b96e8 Do not make power option go away in pre-game dialog when turning scavengers on.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7682 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-09 23:44:20 +02:00
Per Inge Mathisen 8e237aefcb Fix warning reported in ticket:586.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7681 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-09 23:44:19 +02:00
Buginator cdbe56c1c5 Merge netplay (anti-dpid) branch to trunk.
netplay branch ceases to exists anymore.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7678 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-09 23:44:17 +02:00
Per Inge Mathisen 8c16a47ef0 Fix broken sources after 'make clean' in tarball generated by 'make dist'. Reported by 'JimPansen' in the forums.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7671 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-09 23:44:11 +02:00
Per Inge Mathisen f3b754c4eb Purely cosmetic improvement to rarely touched code.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7662 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-09 23:44:09 +02:00
Buginator cbe998956a Slight cleanup of glOrtho parameters that should be double floats.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7660 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-05 16:21:06 +02:00
Buginator 788f399615 Adding crash handler testing code. (to test crash dump reports)
enable it by --crash on the command line.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7659 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-05 16:21:06 +02:00
Buginator bff6a7c84e Change texLoad to a bool function, to correctly handle tertiles that are of the wrong depth.
This is in response to refs ticket:578 where the wrong tertile depth is used on some tiles, causing GL drivers to crash.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7658 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-05 16:21:06 +02:00
Per Inge Mathisen bf5f17d46f Make it possible to drag a line of rearm pad production similar to how walls and defenses
can be built by dragging the production with the mouse. It also removes the obligatory 
empty tile between rearm pads. Instead, it allows units to drive over rearm pads that are 
not currently busy rearming. This closes ticket:569


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7654 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-05 16:21:05 +02:00
Per Inge Mathisen c6eb8163f2 Do not shuffle VTOL droids out of the way if they are busy rearming on a rearm pad.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7653 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-05 16:21:05 +02:00
Gerard Krol e43a332578 Draw the skybox after the terrain but before the transparent objects. This fixes the black smoke that could be seen against the sky. 2009-06-01 21:47:28 +02:00
Gerard Krol fe7dfb2b1a Rename the dirDiff function to moveDirDiff and remove the old moveDirDiff which was just a duplicate. 2009-06-01 21:27:15 +02:00
Buginator 1932d8d95d mod elaboration code added
Tells user if the mod entered on the command line is enabled, or is invalid.
Output is to stdout or stderr.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7594 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-01 21:19:54 +02:00
Per Inge Mathisen 274db0c51f Add an O(1) path-finding check function that tells us whether it is possible
for a droid with a given propulsion type to go from position A to position B.
It generates some static information on map load using a flood fill algorithm
which takes some time.

Use this function to make sure we do not try to return to repair to a repair
centre that we cannot reach. Closes ticket:546


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7578 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-30 19:24:48 +02:00
Per Inge Mathisen f1a946260e Make AI ignore hostile structures for path-finding when using armed droids. This avoids a problem
getting to the enemy when the nearest point to the target is an impassable terrain obstacle. It
also avoids a pathological path-finding case that makes us search the entire map for a nearest 
point whenever we cannot go somewhere due to enemy structures (eg walls), which wastes a lot of 
CPU. Human players are unaffected by this change.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7555 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:34 +02:00
Christian Ohm 5b1833062a Fix typo
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7553 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:33 +02:00
Guangcong Luo d2f3f8bd42 Revert accidental commit of changes to move.c in r7544.
The other accidental changes are a change to frontend0.png that will be overwritten soon, and the removal of a few unnecessary aborts, which can probably stay.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7547 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:32 +02:00
Guangcong Luo 9000a57144 Fix bug #541 - Uninstaller misses some files.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7544 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:31 +02:00
Buginator b55474c98a *Change* how many savegames we have (now a max of 36).
Report the savegame name on the console when we save.

Thanks to cybersphinx for the centering fix
closes ticket:535

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7542 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:30 +02:00
Buginator 00c10bd866 Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7525 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:28 +02:00
Buginator efc5aee0d2 Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7524 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:28 +02:00
Buginator ef1c6eb400 Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7523 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:28 +02:00
Buginator c127adc19f Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7522 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:27 +02:00
Buginator 59a1576ddb Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7521 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:27 +02:00
Buginator c541cc63f0 Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7520 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:27 +02:00
Buginator 05a98f3361 Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7519 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:26 +02:00
Buginator fd91dd977e Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7518 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:26 +02:00
Buginator ec2a78df63 Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7517 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:26 +02:00
Buginator 8160e6c352 Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7516 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:26 +02:00
Buginator 7b445aa461 Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7515 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:25 +02:00
Buginator c5bad8db10 Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7514 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:25 +02:00
Buginator 26cd8e5b42 Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7513 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:25 +02:00
Buginator e2a15031b4 Fix a bug broken in r1734 (doesn't make any sense to check a negative value for building type)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7510 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:25 +02:00
Buginator b0605e8518 Excise code of useless abort()s & use ASSERT_OR_RETURN to prevent GIGO, and also fix miscellaneous issues of removing things that made by eyes bug out.
*NOTE*, there should be no logic changes besides converting ASSERT() to ASSERT_OR_RETURN()!


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7509 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:25 +02:00
Buginator 7878aff18e Use ASSERT_OR_RETURN to prevent GIGO, and also fix miscellaneous issues, and other things that made by eyes bug out.
*NOTE*, there should be no logic changes besides converting ASSERT() to ASSERT_OR_RETURN()!


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7508 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:24 +02:00
Buginator 3768bf1d02 Use ASSERT_OR_RETURN to prevent GIGO, and also fix miscellaneous issues, and other things that made by eyes bug out.
*NOTE*, there should be no logic changes besides converting ASSERT() to ASSERT_OR_RETURN()!


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7498 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:24 +02:00
Per Inge Mathisen 28c3264c1c Use assert or return macro in action.c and mapgrid.c
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7493 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:23 +02:00
Per Inge Mathisen aea547e583 Fix five "FIX ME: X isn't used" comments and remove five absolutely useless asserts.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7492 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:23 +02:00
Buginator 7330a69a1c Check if the unit has weapons, before trying to see what weapons they have.
Fixes ticket:523

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7487 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:23 +02:00
Buginator a6be776c5d Use ASSERT_OR_RETURN to prevent GIGO, and also fix miscellaneous issues of removing '\n', 'watermelon', and other things that made by eyes bug out.
*NOTE*, there should be no logic changes besides converting ASSERT() to ASSERT_OR_RETURN()!


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7483 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:22 +02:00
Buginator 5fa0712735 Excise code of useless abort() & use ASSERT_OR_RETURN to prevent GIGO, and also fix miscellaneous issues of removing '\n', 'watermelon', and other things that made by eyes bug out.
*NOTE*, there should be no logic changes besides converting ASSERT() to ASSERT_OR_RETURN()!


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7482 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:21 +02:00
Buginator 3fa64efcb1 On certain mission types (limbo & expand) we still have valid map data that is saved in-between the sub missions, and the radarblip drawing code didn't filter things that are outside the current scroll limits of the map.
fixes ticket:499
 

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7481 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:21 +02:00
Buginator e36988eba2 Using ASSERT_OR_RETURN macro to prevent GIGO (Garbage in, Garbage out).
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7479 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:21 +02:00
Buginator 9b5225af4d apply a bug fix patch from travisellett which fixed a minimap / radar issue.
Closes ticket:333

Thanks for the patch!

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7477 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:21 +02:00
Guangcong Luo 27cddc920f Fix typo in action.c
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7464 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:20 +02:00