Commit Graph

5982 Commits (72a10b7cc774aaa61a8a5ae1b43998debdf0e68b)

Author SHA1 Message Date
Per Inge Mathisen 72a10b7cc7 Fix that closes ticket:633 Made research speed and power go haywire if we loaded a game.
Patch by i-NoD. Quick fix. Will fix this properly with new savegame format later.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7834 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:29 +02:00
Per Inge Mathisen a70ba3f2e1 More silly typo fixes
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7833 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:29 +02:00
Per Inge Mathisen d78d670166 Fix silly typo
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7832 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:29 +02:00
Per Inge Mathisen 929048d54e Updated Spanish translation by Gustavo Vivas <sabathorn@gmail.com>.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7831 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:28 +02:00
Guangcong Luo b6bb00f405 Fix possible bug on connection error not clearing old games; reformat surrounding code.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7830 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:28 +02:00
Guangcong Luo 8994b78c6f More fixes to the options menu (align graphics menu; rephrase colored cursor).
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7827 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:28 +02:00
Per Inge Mathisen b86f0f85cc Improve documentation of PLAYER.allocated field. Improve asserts for indexing into some player methods.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7826 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:27 +02:00
Guangcong Luo 5b45d1ac9c Rename "Reverse Mouse" and "Right-Click Orders" to "Reverse Rotation" and "Switch Mouse Buttons", respectively.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7823 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:27 +02:00
Per Inge Mathisen edcc7f79a8 Fix erronous description of ASSERT_OR_RETURN.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7821 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:27 +02:00
Guangcong Luo d805eefed8 New icon for Mac OS X.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7819 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:27 +02:00
Per Inge Mathisen 4966ae5c6a Fix compile failure on MSVC. Patch by stiv, reported by i-NoD. Closes ticket:662.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7818 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:27 +02:00
Per Inge Mathisen 4d33f6a51d Add new function to output grayscale PNG images. Needed for ticket:652 net map/savegame format.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7817 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:26 +02:00
Guangcong Luo d58af93eb5 Fix possible crash in hasCommander()
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7816 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:26 +02:00
Guangcong Luo 1f97005b83 Restore savegame compatibility with TUTMG
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7813 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:26 +02:00
Christian Ohm dccf60a1bf Remove some more mentions of TUTMG
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7812 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:26 +02:00
Guangcong Luo 3ee7d16904 Remove another mention of TUTMG.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7809 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:25 +02:00
Guangcong Luo 70431dff3b Get rid of the scourge of TUTMG once and for all (fixes bug #594, as well as my sanity). Also get rid of useless multiplayer folder in base.wz.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7807 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:25 +02:00
Guangcong Luo d913d66cc6 Add 256x256 icon.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7805 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:25 +02:00
Per Inge Mathisen 63c94de726 Fix bug introduced in r7737 where we would iterate wrongly over uninitialized effects during
shutdown, and badly initialize new nodes in the effect chunks. This caused a counter underflow
and crash during any game save. This closes ticket:640 for real this time.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7801 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:25 +02:00
Per Inge Mathisen fc78b8326e No longer save most game state as tagfile format (wzs). Closes ticket:640 reported by Samowar.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7800 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:24 +02:00
Freddie Witherden 54f3d2e9b8 Get Mesa offf of my lawn. Update the Xcode project.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7789 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:24 +02:00
Christian Ohm a5c67098a7 Fix Italian translation and run update-po
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7784 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:24 +02:00
Buginator 7044fb1ca2 Make sure we take xOffset into account, we don't always start at 0 for the FMV text.
fixes ticket:625

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7781 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:23 +02:00
Guangcong Luo ea2d10129f Allow droids to grab artifacts and oil drums from up to 1 tile away (fixes bug #614, and should make grabbing artifacts and oil drums a lot less frustrating).
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7778 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:23 +02:00
Buginator 05cef0a6cd Revert r7413, and instead use this fix to *never* control the transport in SP games.
Fixes ticket:568


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7777 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:22 +02:00
Buginator 09ea0d44c9 Bump up MAX_RESEARCH to 500 from 450.
Closes ticket:599

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7775 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:22 +02:00
Buginator 80ce7b0a33 Translation update: sl.po by ThomasCarstein
closes ticket:615


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7771 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:22 +02:00
Buginator 54479fca6b Translation: it.po by Alpha93
closes ticket:621


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7770 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:22 +02:00
Buginator 619a23086d Update .vcproj to use the vs2k5 version of the resource file, since the new icons break the resource compiler.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7766 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:21 +02:00
Per Inge Mathisen 6a683536d6 Add the ability of allied players to share each others' sensors. Since iterating over all structures
by all players to see if we could use each as a sensor would be rather time consuming, I created a 
new set of lists (currently with only one member) that sorts objects by function. This way we can 
very quickly iterate over all sensors, even when there are several hundred buildings on the map. 
Closes ticket:636.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7765 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:21 +02:00
Guangcong Luo 53c81cfdc9 Experience speed adjustment happens after max speed limit; fix bug with speed calculation.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7760 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:21 +02:00
Buginator 80ea1a5649 Slight typo fix
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7756 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:21 +02:00
Buginator eb224c0f5b Change texture size to be a minimum of 128, instead of 32 or 64 (which makes everything look hideous!), and also cap the decals to 128, independent of what the user has picked in the options menu, until we get higher res textures to match all the settings.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7755 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:20 +02:00
Buginator 6263ddbb6c Add PREPROCESSOR_DEFINITIONS for zip support in release builds as well. (untested, but should work)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7753 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:36 +02:00
Buginator a16974cf6d Remove 1 Assert check that was introduced in r7747.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7751 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:36 +02:00
Buginator 8efc80afbe Cleanup message.c for various whitespace violations, and convert some ASSERT(s) to ASSERT_OR_RETURN(). Other than that, there should be *no* code changes.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7749 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:35 +02:00
Buginator 2e8b406a56 Add additional checks in isLasSat(), since it appears we can have invalid pointers being passed.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7747 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:35 +02:00
Buginator 69dfc7fc36 Change some LOG_ERROR(s) to info (LOG_INFO), since they are not really errors. As you may recall, info() displays in both debug & release builds.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7744 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:35 +02:00
Buginator c349a34865 Add a timestamp to addDumpInfo().
Remove the separator bars in the report file

We now log, map name (for SP/MP), the language that is read from the config file, and if they are using a cheat.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7743 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:35 +02:00
Per Inge Mathisen 5271d5cf9a Fix indentation
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7742 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:35 +02:00
Buginator 27bdf48197 slight cleanup of r7738
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7739 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:35 +02:00
Buginator 1ccb1487de Create a new function, addDumpInfo(), to be used to add custom information to the crash dump report file.
Currently, we query openAL & openGL vendor/version info.
This should give us more descriptive crash reports on the user's hardware.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7738 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:34 +02:00
Buginator e53a25e859 When we have a level change, we must reset the firebit, or that tile will 'burn' ~forever, since the effects were cleared prior to the level change.
closes ticket:611


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7737 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:34 +02:00
Buginator c270a5fe16 forgot to remove the useless '\n' from some info() lines
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7735 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:34 +02:00
Buginator 11ab9125ad Add new macro, info(), it is shorthand for debug(LOG_INFO,...). This is used to *always* display informational messages on both debug & release builds.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7734 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:34 +02:00
Freddie Witherden 0ca183c6ce Fix some spelling and indentation mistakes in action.c.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7733 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:33 +02:00
Christian Ohm 279458f584 Show translations for finished research display
This fixes the not-translated strings mentioned in
http://forums.wz2100.net/viewtopic.php?&t=3152, by translating the strings on
display. Translating them on load would be preferable; I guess they are loaded
in src/message_parser.y, but I have no idea how to put the gettext stuff in
there.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7732 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:33 +02:00
Christian Ohm c7e0bea7fc Reduce line spacing in the research display.
Makes the text actually fit into the box again.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7731 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:33 +02:00
Per Inge Mathisen 6ed7492b61 Clean up continent check for return for repair, and add one for return for recycle. Patch reviewed by stiv and EvilGuru.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7728 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:33 +02:00
Per Inge Mathisen 0111587288 Use new fpathCheck() to implement new continent based path checks for repair orders.
Also introduce two new utility functions - objPosDiffSq and droidSqDist for easy
position comparisons, the latter with continent check built-in. Reviewed by Buginator.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7727 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-16 22:28:33 +02:00