Buginator
173488dcbc
Update changelog / docs
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7595 4a71c877-e1ca-e34f-864e-861f7616d084
2009-06-01 21:19:54 +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
Buginator
2fd30d2818
The hack from r7341 seems to break Mac OS X compiles.
...
Added #if guards around the hack.
Thanks to Vermithrax for the heads up.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7593 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-30 19:24:49 +02:00
Buginator
0c73d7516f
Partial Revert of r7447, AI scripts all reverted back.
...
Will fix the issue another way. Old (skirmish) savegames from previous versions of the game will work again.
refs ticket:406
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7580 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-30 19:24:48 +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
Christian Ohm
3755741432
Run update-po
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7565 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:35 +02:00
Buginator
e04f4f9bea
Add a new translation: zh_TW.po by chtsau
...
Closes ticket:239 and ticket:439 as well.
Thanks!
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7563 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:34 +02:00
Guangcong Luo
3c18bbf28d
Fix bugs #533 , #292 , and #398 - Angel missile no longer obsoletes long-range artillery, Ripple Rockets no longer autoupgrades to Archie, and Mortar Fast Loader requires Mortar Rapid Loader Mk3.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7558 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:34 +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
f98926d94d
Run update-po
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7554 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
Christian Ohm
9862e33528
Run update-po
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7550 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
Giel van Schijndel
452c507de1
Networking:
...
* Only clean up the IPv4 socket if we are able to enable IPv4 mapping of IPv6 addresses ''and'' are able to create an IPv6 socket
* Add some more debug messages to be able to see what sockets could be created
* Close sockets when they've become useless/invalid
This should fix #534 for real (unlike r7541, which fixed it and then reintroduced another bug causing the same symptom).
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7543 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
Giel van Schijndel
c2f8273762
Make setting up of the IPv4 and IPv6 sockets indepent:
...
* Allow failure for setting up of one of the sockets
- More accurately: require only one socket to succeed
* Try to use the IPv4 to IPv6 mapping feature if the host OS provides it
- This allows us to use only a single socket on those systems for both listening to IPv4 and IPv6
This should fix #534 .
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7541 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:30 +02:00
Giel van Schijndel
7e6afc09cb
#include all required headers (<netinet/in.h> for sockaddr_in and sockaddr_in6)
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7540 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:30 +02:00
Giel van Schijndel
1b11d622f1
Exceptionhandler: Remove signal descriptions for signals that are either non fatal or simply not handled by our signal handler
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7539 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:29 +02:00
Giel van Schijndel
7bb1474692
FreeBSD #defines alloca() in <stdlib.h>, not <alloc.h> (that's a Linux/glibc thing), so make the #included file platform dependent
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7538 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:29 +02:00
Giel van Schijndel
ecbe152f7c
Don't #define _XOPEN_SOURCE on FreeBSD as on that platform it actually causes several functions to be ''hidden''.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7537 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:29 +02:00
Giel van Schijndel
6e4c85a1b3
Allow usage of 'Flex' from non-standard locations
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7536 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:28 +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
Giel van Schijndel
df13cc83ee
Fix a typo: NotImlementedError -> NotImplementedError
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7502 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:24 +02:00
Giel van Schijndel
103a2137f9
Lobbyserver: handle and ignore the case where sending of status messages isn't supported by the current protocol
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7501 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:24 +02:00
Giel van Schijndel
3b7a1bd8dc
Use Python's NotImlementedError exception instead of an assert(false) to indicate the lack of an implementation.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7500 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
Giel van Schijndel
9182f1161b
Make the fact that we're stripping NUL chars more explicit (see r7437)
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7496 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:23 +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
bebb4e773a
set the volume of the FMV based on the user's preferences
...
fixes ticket:526
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7490 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