Commit Graph

6988 Commits (36a6036b9f8ad5e73467bb29b027258e98add83d)

Author SHA1 Message Date
Buginator dc8cb98ad9 Update MSVC project file for release build and fix iniparser DebugInformationFormat.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9588 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:57 +01:00
Cyp c491a4b315 lib/netplay/netplay.c: Change don't-while loop into do-while loop.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9582 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:57 +01:00
Christian Ohm 5b3b144994 Remove a useless macro parameter.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9580 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:57 +01:00
Per Inge Mathisen 6f052e0ed9 Fix offscreen updates, they were only setting droid pos.x and pos.y for most orders, and those are
promptly overwritten next frame by sMove.fx and sMove.fy which are not updated. So I rewrote the code
a bit to only use the floating point values. I also made it issue move command for onscreen changes 
when in guard order. Not sure why we do not do this for all orders, but at least guard should also be safe.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9578 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:56 +01:00
dak180 3a800c09a3 Add wavecast.cpp and wavecast.h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9565 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:56 +01:00
Per Inge Mathisen 16aa6298b2 Two new cheats to investigate sync issues in MP: "sync me" to force sending sync checks for
selected units, and "power info" to print out the power for each player.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9564 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:55 +01:00
Cyp 5156184644 ai.c: Increase target weight, so droids aren't too lazy to target anything.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9563 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:55 +01:00
Cyp 8f034fe834 Workaround for Microsoft bugs such as #defining random words such as min and max.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9562 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:55 +01:00
Guangcong Luo f5ded29098 Add back the isMPDirtyBit hack, and prevent kicking on data problems in debug mode.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9561 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:54 +01:00
Per Inge Mathisen 8f51743062 Keep bitfields of vision knowledge for faster comparisons. This speeds up map vision updates by almost 15%. (Reviewed by Cyp_.)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9559 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:54 +01:00
Christian Ohm 3ad0b8dbc0 Updated Spanish translation by Saberuneko.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9557 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:54 +01:00
Cyp 2f896b3f1b bucket3d.c: Cleanup dead code, remove arbitrary limits, replace approximate sort with exact sort. (Reviewed by Per.)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9556 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:54 +01:00
Per Inge Mathisen bc633df81a Make human players have super cyborgs and cyborg engineers again.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9553 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:54 +01:00
Per Inge Mathisen c6fdcd9933 Do not crash by freeing stack allocated variable when finding a duplicate template.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9550 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:53 +01:00
Christian Ohm 1e418f3f28 Updated Russian translation by Maxim.
Closes #1497.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9549 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:53 +01:00
Christian Ohm 1c26f7ddd5 Fix a few graphical off-by-one errors.
Put the bottom left menu one pixel to the right, so the distance to both bottom
and left edge is 24 pixels. Move the menu buttons two pixels up, so it's in the
middle. Put the radar into the middle of its border. Make the bright rectangle
fill the complete selection.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9548 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:53 +01:00
Per Inge Mathisen 46a987621e Set visibility variables properly to remove random visibility bugs.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9547 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:53 +01:00
Cyp 1da4d6e731 Add the "void" in "processVisibility(void)" to compile with --enable-debug=yes.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9546 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:53 +01:00
Cyp 2c900bbc39 Cleanup and code that could be used to make clusters (whatever that means) spend a lot less time updating (if that wouldn't break anything).
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9545 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:52 +01:00
Cyp a19eb86fda visibility: Make object-object visibility less weird and less inefficient.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9544 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:52 +01:00
Per Inge Mathisen f703e92962 Remove some duplicate code for determining a structure's display brightness, and in the process
make animated buildings (ie oil derrick) pulse when selected and darken with true fog of war as well.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9542 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:52 +01:00
Per Inge Mathisen faba60b3fa Clear team selection when loading saves from in-game.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9540 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:52 +01:00
Cyp e095e8d80e visibility: Cast terrain visibility as sectors instead of rays.
Previous algorithm had a surprisingly high asymptotic runtime. (Insertion into unsorted sets.)
The new implementation does not generate pretty moiré patterns.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9539 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:52 +01:00
Guangcong Luo 850cc41653 Fix bug #1483 - unbuilt structures and walls shouldn't confer visibility.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9536 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:51 +01:00
Per Inge Mathisen 21d38e3685 Fix typo in AI script
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9535 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:51 +01:00
Per Inge Mathisen f4aba9fb28 Workaround for bug that makes the AI stop researching.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9533 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:51 +01:00
Per Inge Mathisen eb5f9d4395 Deactivate reached oil resource script when human player is playing. Bug reported by cyp_.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9532 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:51 +01:00
Cyp c597cba214 Fix uninitialised variable in aiStructHasRange, making it random whether sensors were in range.
This removes a warning in optimised builds.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9530 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:51 +01:00
Cyp 0d956bb81b structure.c: Fix crash in hqReward on campaign start.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9529 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:51 +01:00
Guangcong Luo 9723bbb44b 2.3: Fix bug #1444 - crash upon exit - patch provided by Safety0ff.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9527 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:51 +01:00
Guangcong Luo 3cb6835e5c Delete cms.php - it appears to be superfluous.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9525 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:50 +01:00
Guangcong Luo 518bd1bf79 Add persist library to Guidecode.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9524 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:50 +01:00
Guangcong Luo cd8fc32f0e Fix typo in guidecode readme.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9523 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:50 +01:00
Guangcong Luo 23b3d52c46 Add Warzone Guide code into /trunk/tools/guidecode/.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9522 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:50 +01:00
Per Inge Mathisen 1fa11735d0 Make use of bitfields to reduce the number of conditional branches inside critical
visibility loops, and give each player their own explored status for each tile. 
(One of these days we should send exploration status over the network, too.)


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9520 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:49 +01:00
Guangcong Luo 627fe71e8a Fix a bug (caused by a hilarious off-by-one error) letting players see oil resources when allied with an AI.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9519 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:49 +01:00
Giel van Schijndel 84dffec0b1 Commit Trac mini plugins (which we use):
* TracPhpBBCookieAuth
  - Considers users that are logged in on PhpBB to be logged in on Trac as well (resuing the PhpBB cookie)
 * TracHttpOnlyAuthCookie
  - Sets the HttpOnly flag on Trac's auth cookie (prevents clientside, e.g. javascript, scripting access to the cookie)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9516 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:49 +01:00
Per Inge Mathisen 42a023a592 On advice from Zarel, make AI build scorption body hover trucks instead of cobra.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9515 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:49 +01:00
Christian Ohm 539d03f370 Update translations.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9510 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:49 +01:00
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