Christian Ohm
d8295761fc
Add missing include to astartest.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9150 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:34 +01:00
Christian Ohm
d278371ac0
wz2100welcome.bmp doesn't exist in trunk.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9149 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:34 +01:00
Per Inge Mathisen
6404ceef2b
Fix erroneous name and documentation of function campInit(), which is not campaign specific.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9148 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:34 +01:00
Christian Ohm
b0c4e40934
Include files needed for win32 cross-building.
...
Building from tarball still doesn't work, since nsis wants the gmo files in the
build dir while they are in the source dir.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9146 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:34 +01:00
Christian Ohm
d14d6f013d
Autosave game after finishing a campaing level.
...
This saves a game called "Autosave" whenever the "Save Game" option appears
after completing a mission. Enables people to restart a mission even if they
didn't save at the beginning.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9141 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:34 +01:00
Christian Ohm
d3af2d3793
Update translations.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9140 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:33 +01:00
Per Inge Mathisen
027cb31486
Make AI use event chainloading for basic structures and new trucks. This means that instead of calling
...
common AI functions from several places, which can lead to the CPU spending much time doing AI stuff
that frame, or setting the object to idle and wait for a repeat event to pick it up, which can lead to
long delays, it queues up another event for the next AI frame to continue processing.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9133 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:32 +01:00
Per Inge Mathisen
58425f4144
Fix crash in message code when using cheat menu to switch between players. It happened because we would
...
always search and remove messages for selectedPlayer, even though each player has its own message queue.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9132 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:32 +01:00
Per Inge Mathisen
baa0ac2188
Purely stylistic changes to make it easier to read this code for mistakes.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9131 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:32 +01:00
Guangcong Luo
8e6b4e59b6
No need to assert just because the RNG picked a bad place for an oil barrel.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9130 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:32 +01:00
Guangcong Luo
148fdb41e6
Revert accidental addition of initObjectPosition in previous commit.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9128 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:31 +01:00
Guangcong Luo
c84e5507bf
Fix bug #1393 - incendiary weapon fire can appear in the wrong place - patch provided by Cyp_
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9125 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:31 +01:00
Guangcong Luo
ad3c8471fd
Don't let CB droids autotarget. (part 2 of workaround for broken SVN)
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9123 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:31 +01:00
Guangcong Luo
980bf746e7
Don't let CB droids autotarget. (workaround for broken SVN)
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9122 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:31 +01:00
Guangcong Luo
c7a7cc67bd
Fix typo in multijoin.c.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9120 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:31 +01:00
Per Inge Mathisen
d6cc3625b7
Fix buildDroid() assert message and make it more informative to help track down a bug in it.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9117 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:31 +01:00
Per Inge Mathisen
6503ef53b6
Mitigate a crash in blueprint drawing. Also add more debug info when bug happens. Closes ticket:1334
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9115 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:30 +01:00
Per Inge Mathisen
38f13ca05f
Fix spelling error in debug message
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9114 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:30 +01:00
Per Inge Mathisen
35c3ef9d35
When picking a tile based on a given start coordinate, make sure the result coordinate is on
...
the same continent as the start coordinate. This hopefully fixes ticket:1385
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9112 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:30 +01:00
Guangcong Luo
b1f7e8ba17
Add more debugging information to recvDataCheck().
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9111 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:30 +01:00
Per Inge Mathisen
9548a4da75
2.3: In the buildDroid script command, change ASSERTs to ASSERT_OR_RETURNs so that
...
we can recover from errors. This is an attempt to mitigate the problem in ticket:1383
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9109 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:30 +01:00
Per Inge Mathisen
4f963349cc
Fix the order audio samples are removed so that they actually are removed properly.
...
Patch by jovie1024. This closes ticket:1391
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9106 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:29 +01:00
Per Inge Mathisen
467730a50e
Fix sensor auto-targetting. Patch by Cyp. Closes ticket:1392
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9104 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:29 +01:00
Per Inge Mathisen
93f1d85e2d
Add new debug log category for saving whatever was sent to console.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9102 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:29 +01:00
Guangcong Luo
357de2a6cb
Apply patch #1330 provided by Cyp - Add unicode support to text boxes and game-chat
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9101 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:29 +01:00
Guangcong Luo
406d82d15e
Optimize reloadMPConfig() and comment it better.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9099 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:29 +01:00
Guangcong Luo
acc1c8f155
Don't save MP game configuration settings if you're not the host.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9097 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:28 +01:00
Guangcong Luo
c139a431ff
Only show "You're the host" warning for real MP games. Also correct grammar of "You're the host" warning.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9096 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:28 +01:00
Guangcong Luo
90725264c9
Allow host to choose team for any player.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9093 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:28 +01:00
Guangcong Luo
70ab25e9e6
Make sure kicks are processed correctly.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9090 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:28 +01:00
Guangcong Luo
64e2425cf0
Update trunk VersionString.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9088 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:28 +01:00
Guangcong Luo
809149c437
Add feedback for the 'mouseflip' and 'shakey' commands.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9086 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:27 +01:00
Guangcong Luo
6749d42eec
Fix autoclick on IP dialog; add a cancel button to IP dialog.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9084 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:27 +01:00
Guangcong Luo
dd898dfbad
Fix bug #1250 - beacons seen by people who shouldn't see them.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9082 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:27 +01:00
Christian Ohm
19160be495
Update Estonian translation.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9078 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:27 +01:00
Per Inge Mathisen
08c2c1556a
The "superpower" cheat now gives you exactly 100 000 power to match the new limit.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9076 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:27 +01:00
Guangcong Luo
3e5998db68
Cap power at 100,000. (There was forum consensus!)
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9074 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:27 +01:00
Christian Ohm
e089ceefca
Update translations.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9070 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:26 +01:00
Christian Ohm
e0a74027e5
Change ASSERT to ASSERT_OR_RETURN in delSocket.
...
Closes #1368 .
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9068 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:25 +01:00
Guangcong Luo
a3f5fd403c
Fix bug #1220 - Transports don't fly to delivery point.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9067 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:25 +01:00
Guangcong Luo
0b4c58bd0b
Commit patch #1375 - don't allow players to ignore kicks, add a kick button to the MP game setup screen, prevent spoofing a message from a different source, don't show "player left" message unless a player actually left.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9065 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:25 +01:00
Christian Ohm
0eb8af379d
dealWithLMBObject: Don't assert on valid values.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9062 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:25 +01:00
Per Inge Mathisen
7b63597be1
Add (back) fog of war to the other radar modes. Stop radar from changing size when
...
changing mode. Closes ticket:1372
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9058 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:24 +01:00
Per Inge Mathisen
ada555a8d0
Add two new features to challenges, 1) to enable/disable changing your own position,
...
defaulting to not allowing user to change his or her position, and 2) to allow the
challenge to specify starting positions for each AI. Previously the user could freely
change starting position on all maps. Now this feature is only allowed on the "No Place
To Hide" challenge. Also move the starting AIs for "Hide Behind Me" challenge to flank
the starting player.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9056 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:23 +01:00
Guangcong Luo
c66c08e58d
Prevent messages sent to allies appearing twice in console.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9054 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:23 +01:00
Guangcong Luo
7f9cdd61e0
Fix possible crash when removing droids from transporter while calling reinforcements from an away mission.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9052 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:23 +01:00
Guangcong Luo
6c11cf0d9b
Clicking on empty space no longer cancels the loadsave dialog.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9051 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:23 +01:00
Guangcong Luo
0d01c89aba
scrRemoveMessage sometimes asserts when videos aren't available. Asserts are automatically fatal on Mac OS X and Linux, so demoted it to an error.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9049 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:22 +01:00
Per Inge Mathisen
cec4b05497
Revert r8904 - nested multimessage on/off patch
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9045 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:22 +01:00
Christian Ohm
4379fdcbd0
Fix possible segfault in miniupnp.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9041 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:22 +01:00