Commit Graph

6799 Commits (97bc6918b179fffc29d97908519d50140415b22c)

Author SHA1 Message Date
Christian Ohm 97bc6918b1 Updated Estonian translation by Erlando.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9509 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:48 +01:00
Christian Ohm 07934754da Updated Spanish translation by Saberuneko.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9508 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:47 +01:00
Christian Ohm 0cd52a643b Mark a research string as no-c-format for translations.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9507 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:47 +01:00
Per Inge Mathisen 7d210588c3 Do some more precalculation of alliances and redefine aiCheckAlliances() as a macro. This achieves
approximately 8% speedup on some large games.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9503 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:47 +01:00
Per Inge Mathisen 3a783743a4 In certain corner cases, buildings could end up not being seen by sensors in true fog of war.
This makes sure that all tiles on which we have buildings are properly seen by sensors.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9501 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:47 +01:00
Per Inge Mathisen 1aae810a22 Make AI build cobra hover trucks when it is able to, instead of the ordinary starting trucks. This
allows the AI to access areas of certain maps that are blocked by water. On these maps, this makes
a great deal of difference. This breaks skirmish saves, so do not backport.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9499 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:46 +01:00
Per Inge Mathisen eed1904333 Change script function isStructureAvailable() to also check structure limits. This closes ticket:773
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9498 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:46 +01:00
Per Inge Mathisen 3156a4d9b4 If any player in fixed teams mode got sat uplink, all players got to see entire map. Fixed.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9497 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:46 +01:00
dak180 8a97aa2393 Clean up the fetch scripts.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9495 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:46 +01:00
Guangcong Luo dbd9be9a5a 46 warnings from Xcode on the wall, 46 warnings from Xcode... take several down, make a few variables signed and cast some other "%d"s to (int), 6 warnings from Xcode on the wall!
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9493 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:45 +01:00
Guangcong Luo 56295f9360 150 warnings from Warzone in Xcode, 150 warnings in Xcode... Take several down, cast a whole bunch of things passed as "%i" to (int), 46 warnings from Warzone in Xcode!
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9488 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:45 +01:00
Guangcong Luo ccef0c4b47 Fix crash updating DORDER_PATROL.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9487 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:45 +01:00
Guangcong Luo bac704a7cf 152 warnings from Warzone in Xcode, 152 warnings in Xcode... Take one down, fix an unsigned/signed comparison warning in mapgrid.cpp, 150 warnings from Warzone in Xcode!
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9486 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:45 +01:00
Christian Ohm 4072a3cac0 Add key mapping to toggle the trap cursor setting.
Alt-t by default, won't be active until the keymap is reset.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9480 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:44 +01:00
Cyp f1e0c95dd3 Remove accruePower(){return false;} function, which is no longer used.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9478 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:44 +01:00
Christian Ohm 5d3cdc66dd Update translations.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9475 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:44 +01:00
Christian Ohm 36acdc554b Add Croatian translation by 13KukYNexus666.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9474 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:43 +01:00
Cyp 826f3fde0c Make VTOLs roll more when turning, and smoothly.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9473 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:43 +01:00
Cyp f9e3b1eb85 Fix VTOLs flying at strange angles. Patch by Safety0ff.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9472 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:42 +01:00
Christian Ohm 8fc2196f14 Updated Polish translation by Emdek.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9469 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:42 +01:00
Christian Ohm 0b54babb5a Updated Spanish translation by Saberuneko.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9468 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:42 +01:00
Per Inge Mathisen bae4d0a056 Sometimes psDroid->pName is not set for some reason when loading templates. Hack it to use aName instead to avoid a crash.
Seems to happen during campaign changes.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9467 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:42 +01:00
Cyp e0ba7eb4ff Fix progress bars, reenable sound test, move variable, remove magic number, comments and spelling. Patch by Safety0ff.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9466 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:41 +01:00
Per Inge Mathisen f29597696a Forgot to remove a log error message in previous commit
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9465 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:41 +01:00
Per Inge Mathisen daceec3fd9 New script function bool getPlayerStartPosition(index, ref x, ref y) that finds the start position of any player.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9464 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:41 +01:00
Per Inge Mathisen cb3c9bcf88 Style, indent and dead code cleanup.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9463 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:41 +01:00
Guangcong Luo 255506d4b6 Correctly calculate frameTimeFraction2 - fix bug #482, among many other bugs.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9461 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:41 +01:00
dak180 525c32491a Really turn -Werror off this time.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9460 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:40 +01:00
dak180 2d5847991e Turn -Werror off to keep Zarel sane.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9459 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:40 +01:00
dak180 e8eaac514e Bring Xcode inline with warnings..
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9458 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:40 +01:00
Guangcong Luo 4e828632be Fix bug #1396 - can start game with everyone on the same team.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9456 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:40 +01:00
Christian Ohm f4de16db77 Replace deprecated libpng variables.
Refs #1471.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9455 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:40 +01:00
Guangcong Luo 683c03f999 Don't treat ".svn" as a mod, even if it is in the autoload dir.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9454 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:40 +01:00
Christian Ohm d7d4c258c4 Actually include challenges in base.wz.
Fixes #1470.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9452 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:39 +01:00
Guangcong Luo 3579209ab4 Fix bug #1466 - release builds shouldn't assert - fixes a ton of "crashes" in Mac OS X and Linux.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9451 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:39 +01:00
Christian Ohm 897eeadedd Disable mouse scrolling when mouse leaves the window.
Keyboard scrolling still works. Really fixes #1141, and makes the game always
behave as mentioned in r9428.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9447 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:39 +01:00
Christian Ohm 35a510aa61 Remove unused bRetardScroll.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9446 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:39 +01:00
Cyp 275e260a89 Fix building with PD-ksh on BSD. Reports and some patches from brad0. (svn -r9444)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9445 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:39 +01:00
Christian Ohm d7b341b788 Increase the scrolling area from 16 to 22 pixels.
Makes scrolling a bit easier with larger resolutions. 24 is where other stuff
starts (radar...), so we can't increase it more.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9442 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:39 +01:00
Guangcong Luo 6fbdb2d638 Fix turnOffMultiMsg's return values.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9441 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:38 +01:00
Guangcong Luo f8013c8ec2 Simplify turnOffMultiMsg.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9439 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:38 +01:00
Christian Ohm 1a6376c3ae Reset scrolling on focus loss.
Prevents jumping around when the window is focused again.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9437 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:38 +01:00
Cyp 4fd281e09f Fix turnOffMultiMsg(). Multiplayer games should work again, now.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9436 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:38 +01:00
Per Inge Mathisen ca1d602ccb Remove visibility information when changing between campaigns. This closes ticket:1461
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9435 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:38 +01:00
dak180 8b9dfd0789 Better version numbers for branch builds.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9432 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:38 +01:00
Per Inge Mathisen e13870f0cd Make sure we match the correct templates by not reading human templates from VLO files, and comparing untranslated names.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9431 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:37 +01:00
Cyp 03f3c9c5d6 raytrace: When hitting the wrong target, do damage to the wrong target, too.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9429 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:37 +01:00
Christian Ohm 1f9303e74c Clean up handleActiveEvent.
This fixes PauseOnFocusLoss to actually work in skirmish, and disables
scrolling when the mouse leaves the window. Fixes #1411.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9427 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:37 +01:00
dak180 c6587a8f1d Minimum required Xcode 3.1; Minimum system version 10.5 (for building, it will still play on 10.4).
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9424 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:37 +01:00
Per Inge Mathisen d9eeb65e4c Forward port r9060 from 2.3 to remove always show oil resources change. We need to implement
private player maps before we can implement this feature.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9422 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:37 +01:00