expected that an oil derrick would always be placed on top of an oil feature.
This is not the case when loading games, however. In this case, the oil is gone.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1847 4a71c877-e1ca-e34f-864e-861f7616d084
still assert, though. We need to figure out why it sometimes wants
to build derricks on tiles that do not have oil.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1846 4a71c877-e1ca-e34f-864e-861f7616d084
* Declare vars at the beginning of the block
Hinted at the problem by vs2k5
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1843 4a71c877-e1ca-e34f-864e-861f7616d084
connectors, team colors (using a second UV layer). Not supported: animations of any kind.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1840 4a71c877-e1ca-e34f-864e-861f7616d084
* Add explaining comments
* Remove some pieces of commented out code that only help us stand a better chance at winning the "Obfuscated C" contest
* Get rid of some copy&pasted code which only has minor differences, and use a more general of the two copies instead
* Remove armourDamage (held damage dealt to an object's armor) since it wasn't ever used
Cleanup part of patch #745 by Freddie Witherden <EvilGuru>
Plus additional modifications by myself
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1836 4a71c877-e1ca-e34f-864e-861f7616d084
* Remove some commented out lines
* One of these commented out pieces described lowering armor as a result of being shot; this however would result in high ROF weapons being overpowered (not to mention the code was so old it probably wouldn't compile)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1834 4a71c877-e1ca-e34f-864e-861f7616d084
* Use "%zu" as format specifier to print out size_t types
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1833 4a71c877-e1ca-e34f-864e-861f7616d084
* This conditional compilation is controlled by WZ_NOSOUND (which replaces WZ_NOOGG)
* Remove an unneed inclusion from oggvorbis.h (track.h)
NOTE: This is currently integrated in none of the build systems
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1832 4a71c877-e1ca-e34f-864e-861f7616d084
* Create a dedicated function for conversion of ASCII characters into upper case: upcaseASCII
* Make HashStringIgnoreCase use upcaseASCII instead of an ugly bitmask hack which won't even work as expected on all strings!!
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1830 4a71c877-e1ca-e34f-864e-861f7616d084
* modify getDroidLevel to provide the functionality of cmdDroidLevel for command and sensor droids
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1827 4a71c877-e1ca-e34f-864e-861f7616d084
(I simply should have enabled my VIM XML validation script, doh!)
Patch by vs2k5
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1826 4a71c877-e1ca-e34f-864e-861f7616d084
* To make sure we still have the guarantee that a char is 8bit I've inserted a static assertion for this (CHAR_BIT == 8)
* Use exact length types for lobbyserver
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1821 4a71c877-e1ca-e34f-864e-861f7616d084
That is:
* Don't use a custom memory heap implementation anymore
* Remove all usages of HEAP code and replace it with malloc/free
NOTE: MacOSX projectfile probably requires an update
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1820 4a71c877-e1ca-e34f-864e-861f7616d084
* Replace use of heaps psDroidHeap, psStructHeap, psFeatureHeap and psGrpHeap with malloc/free
* Use decent assertion expressions for some asserts (e.g. !"string", so that debuggers actually display something more interesting than 'FALSE')
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1819 4a71c877-e1ca-e34f-864e-861f7616d084
* Replace use of heaps psStructFuncHeap and psFlagPosHeap with malloc/free
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1818 4a71c877-e1ca-e34f-864e-861f7616d084
* Use decent assertion expressions for some asserts (e.g. !"string", so that debuggers actually display something more interesting than 'FALSE')
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1815 4a71c877-e1ca-e34f-864e-861f7616d084
* intdisplay.c now uses the widget interface to set tooltips on its widgets (which is the const-correct way, and better localizes memory management code; i.e. strdup() would be the dirty-hack style alternative)
* Change mixed space/tab indentation into tab indentation (only for one function though)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1812 4a71c877-e1ca-e34f-864e-861f7616d084
* Use decent assertion expressions for some asserts (e.g. !"string", so that debuggers actually display something more interesting than 'FALSE')
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1810 4a71c877-e1ca-e34f-864e-861f7616d084
That is:
* Don't use a custom memory heap implementation anymore
* Remove all usages of HEAP code for string allocation (wasn't being used anyway due to conditional compilation)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1805 4a71c877-e1ca-e34f-864e-861f7616d084
That is:
* Don't use a custom memory heap implementation anymore
* Use malloc & free for memory management
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1804 4a71c877-e1ca-e34f-864e-861f7616d084
(The error state simply wasn't cleared before calling a function that could produce an error)
Patch by vs2k5
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1803 4a71c877-e1ca-e34f-864e-861f7616d084
* Now actually #include <limits.h> so that we can be sure INT_MAX is defined
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1802 4a71c877-e1ca-e34f-864e-861f7616d084
* Don't use two definitions for CHECK_DROID; a debug, and empty non-debug variant. This because (aside from the for-statements) the assert macro is the only thing getting invoked by the CHECK_DROID macro, and the assert macro will automatically be defined to a NO-OP if NDEBUG is defined (which is defined for non-debug builds).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1800 4a71c877-e1ca-e34f-864e-861f7616d084