Commit Graph

22 Commits (39fe5d354459f7d793271d1eda306c0e0a14f3d6)

Author SHA1 Message Date
Freddie Witherden 2e6bf47a94 Make psDroid->numKills a float and rename it to psDroid->experience. Commits patch #894
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3122 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-22 17:07:26 +00:00
Per Inge Mathisen 51daa7e62f Remove the NODRAWTILE bit. We do not need it, and it is in the way of progress.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2928 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-01 15:17:29 +00:00
Per Inge Mathisen f50b4d11dd The old armour system had a single armour value for structures and features,
while droids had one armour value for each weapon class (there are only two 
weapon classes now, though). The new armour system by Watermelon has for droids
one for droids one set of armour values, in which there is one armour value for 
each weapon class, for each six side of the droid. This patch generalizes the 
armour systems into one, and puts it into the base object definition 
(BASE_OBJECT). This makes it easier to maintain, and is one step toward a more 
advanced armour system for structures as well.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2785 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-10 19:27:08 +00:00
Per Inge Mathisen ad9885b14b Add some ugly debug code to help track down dangling object references.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2655 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-28 21:47:52 +00:00
Giel van Schijndel 4ef110a2f1 * Use ngettext at several places to allow for proper translation of sentences with plurals in them
* Replace some invalid usages of %d with %u (for unsigned values of course)
 * make -C po update-po
 * Slightly update the Dutch translation (with some plurals)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2648 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-27 21:35:51 +00:00
Giel van Schijndel ceceb0c57b * Add function countAssignedDroids which counts the amount of droids assigned to a structure
* Use this new function printStructureInfo to display the amount of droids assigned to selected structure
Patch #775 by ohyeh

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2238 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-28 00:34:01 +00:00
Per Inge Mathisen bc7dabc521 Fix off-by-one check in CHECK_DROID and CHECK_STRUCTURE macros. Patch by Watermelon.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2023 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-04 18:26:31 +00:00
Per Inge Mathisen cd8cf1090b Implement the bulk API changes required for reference counting. Also fix some
missing checks for dead targets. Patch by me and Watermelon.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1995 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-01 12:27:25 +00:00
Giel van Schijndel 2c98295eab * Change usage of DROID->numKills to hold the percentage of dealt damage (to other units) instead
* This means that in order to get the actual amount of kills by this droid you need to divide this field by 100
 * All *Damage functions will now return a negative number if the amount of dealt damage was enough to destroy the target object (instead of TRUE)

Patch #745 (Adds Support For Partial Kills) by Freddie Witherden <evilguru>
Some minor changes by me (expansion of comments)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1937 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 12:48:03 +00:00
Per Inge Mathisen 5aa373e5b2 Misc cleanup forward ported from reference counting work. Adds new checking
macro CHECK_STRUCTURE().


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1912 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-21 17:43:50 +00:00
Ari Johnson d411264e17 Reverted changes from r1775 and r1779 that used 'bool' instead of
'BOOL' and thereby prevented the code from building


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1809 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-04 17:26:43 +00:00
Dennis Schridde 6fa36aa0e9 + const, - unused
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1795 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-03 13:46:50 +00:00
Dennis Schridde 68e56823e1 - Constification
- POINT -> Vector2i
- changed internalformat = getPixelFormat() to GL_RGBA in one place
- removed unused variables/functions
- proper intialisation


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1792 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-02 23:01:29 +00:00
Per Inge Mathisen 6eecf830ba Fix two issues with LasSat: You can no longer drag-build it (this would cause
an assert), and you can now build it and other multi-tile defense structures
over walls (plural) without asserting (or crashing) the game. I am sure there
are other issues left. Man, was that feature rushed! ;-)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1779 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 18:03:26 +00:00
Dennis Schridde 6a29f00101 Remove unused comments.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1662 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-20 13:29:05 +00:00
Dennis Schridde d1d55cc977 FRACT->float,[if]SQRT->sqrtf
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1658 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-19 21:32:19 +00:00
Dennis Schridde 2a74242eb3 - Replaced various vectors with Vector3i and Vector3f (idea by Watermelon)
- Vector3i from lib/ivis also used in lib/audio, maybe want to move it to some more generic place?
- Replace iPoint with Vector2i
- Remove additional integer type declarations from pietypes.h
- Rename all iSprite to iTexture
- Various warning fixes: Unsigned/signed comparisons, uninitialized variables, declared but not defined symbols
- Replace DEBUG_BLOCK with DEBUG_MALLOC (it was virtually the same)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1245 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 16:20:16 +00:00
Dennis Schridde 49ceba7503 Add GPL notices to all sourcecode files.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1014 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-15 20:09:25 +00:00
Roman C f3e0227b45 Patch by Watermelon:
-fixes disappearing oil derricks (bug #7740)
-allows structures to have multiple weapons (structureweapons.txt format changed)
-fixes muzzle flash for 2nd and 3rd weapon

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@857 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-25 17:38:27 +00:00
Dennis Schridde d3cd44148d Patch by Gerard Krol: Replace STRING with char (STRING was confusingly defined to char)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@804 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-03 21:35:50 +00:00
Per Inge Mathisen 6d8b190950 Make SBYTE explicitly a signed char, not just a char. This would have broken
some things on platforms where 'just char' means unsigned char. Fix lots of
new signedness warnings resulting from that fix (which would have cropped
up on unsigned char platforms anyway). Also implement a small subset of
stdint.h for windows platform in frame.h, hope this does not create any
conflicts. This allows us to use types like uint64_t where relevant.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@569 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-15 18:20:36 +00:00
No Author 5ba7ddac6b Create final repository structure.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@362 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-28 17:47:08 +00:00