Commit Graph

5853 Commits (5b1833062ad5bb095378bf7524cb62375c7332f0)

Author SHA1 Message Date
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
Buginator e36988eba2 Using ASSERT_OR_RETURN macro to prevent GIGO (Garbage in, Garbage out).
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7479 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:21 +02:00
Buginator 8a87d1985e Fix strlcpy() & strlcat() to use ASSERT_OR_RETURN
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7478 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:21 +02:00
Buginator 9b5225af4d apply a bug fix patch from travisellett which fixed a minimap / radar issue.
Closes ticket:333

Thanks for the patch!

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7477 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:21 +02:00
Buginator 9a3f1046be Fix windows crash dump report, by returning back a c_str() instead of a string.
Fixes ticket:519

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7476 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:21 +02:00
Guangcong Luo 27cddc920f Fix typo in action.c
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7464 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-28 09:59:20 +02:00
Buginator e89dc5e8ec "Do not index an array out of bounds when displaying a chat message from another player with an invalid (unknown) dpid."
Thanks to gerard for the elaboration of the description. ;)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7460 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-18 10:11:27 +02:00
Christian Ohm 1ed583995a Run make -Cpo update-po again to update translations
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7451 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-16 16:07:16 +02:00
Guangcong Luo cf3ea876f9 Commit ticket #423 - Add a tech tree chart generator to the tools.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7449 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-16 16:07:15 +02:00
Guangcong Luo 2d6d0656d5 Stop AI from using player's truck (fixes bug #406). Comment multiTemplateSetup a bit better.
This is a somewhat hacky fix (gives human players ConstructorDroid and computer players ConstructionDroid). The template system has too many eldritch horrors that to fix it properly requires rewriting the entire template code (did you know it loads human player templates from player 5? And so if player 5 is an AI player, it uses a ridiculously complicated workaround?)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7447 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-16 16:07:15 +02:00
Buginator e7071a6acc Commit a 100% done translation of ru.po by Maxim.
closes ticket:347

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7446 4a71c877-e1ca-e34f-864e-861f7616d084
2009-05-16 16:07:14 +02:00