Commit Graph

2476 Commits (fd9d44e1d313df2ffd360ca6ec3d7e6ccb596b15)

Author SHA1 Message Date
Gerard Krol c580835c31 Set the output directory for doxygen to doc/code and enable JAVADOC_AUTOBRIEF.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3038 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-11 19:34:52 +00:00
Giel van Schijndel c51bd8ae10 * Get rid of a large quantity of unused parameters
* Turn some signed integers ("int" or "SDWORD") into unsigned integers where it made more sence (and signed integers caused warnings about comparing signed with unsigned integers)
 * At some places cast to an unsigned integer (where the type of the expression is a signed integer but the result of it logically _always_ is an absolute value)
 * Remove unused struct-type EVENT_INIT
 * Convert use of malloc->memcpy->free to one single realloc call (and now make sure to actually check realloc's return value, which wasn't done with the malloc call)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3037 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-10 23:15:46 +00:00
Per Inge Mathisen 6118371c0e Add methods to read/write byte arrays to tagfile format.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3036 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-10 21:48:27 +00:00
Dennis Schridde 7485b20097 Require flex-2.5.33 (current version in Debian stable), since Gerard ran into warnings with 2.5.4.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3035 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-10 21:21:19 +00:00
Gerard Krol b94ac89c03 Revert 3032, as we don't need to support old versions of Flex.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3034 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-10 21:14:57 +00:00
Per Inge Mathisen fc0db340ce Add info and visibility bits to saved tiles in the tagfile format.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3033 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-10 20:58:26 +00:00
Gerard Krol a8ffb9b8c2 Add -Wno-unused-function to the compilation options for --enable-debug=yes to silence a warning from flex (GCC4.2, AMD64, Debian Testing).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3032 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-10 20:40:09 +00:00
Gerard Krol 6cb9bdcbef Write the resolution specified on the command line to the configuration file.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3031 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-10 20:08:39 +00:00
Freddie Witherden 9710d4e4a7 Update the QualityFactor function in projectile.c to hopefully make it fairer and more stable.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3030 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-10 19:00:43 +00:00
Freddie Witherden 2506b69e1f Add a CLIP macro for culling a value between a min and max value.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3029 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-10 18:36:07 +00:00
Giel van Schijndel 78a5853309 make -C po update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3027 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 23:39:01 +00:00
Giel van Schijndel 51c32760b4 * Fix a bug where would free the wrong pointer (thanks to Buginator for spotting it)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3026 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 23:35:56 +00:00
Giel van Schijndel 7c4e237187 * Apparently the UTF-8 conversion of r3024 wasn't complete; it should be now
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3025 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 23:29:26 +00:00
Giel van Schijndel fc55c1b8ca * Set charset of de.po to UTF-8 (just as all the rest of the files are)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3024 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 23:16:37 +00:00
Giel van Schijndel cc12f08b1a * Apply patch #879 by Buginator with some heavy modifications by me
* Upon removing BASE_OBJECTs loop through the lists of outstanding AUDIO_SAMPLEs to delete all of those that refer to this BASE_OBJECT


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3023 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 22:36:06 +00:00
Per Inge Mathisen 6c4c61fbb7 PIELIGHT fix for map hightlight. Remove use of colours to communicate a boolean value.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3022 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 21:50:47 +00:00
Per Inge Mathisen da7b96315c Final PIELIGHT changes to the widget code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3021 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 21:40:26 +00:00
Dennis Schridde c64b565f14 Patch #872 by Buginator. Untested by me since in Bugs we trust. ;)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3020 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 19:10:34 +00:00
Per Inge Mathisen 53f11c391f Add a new vector field to the PIELIGHT union, and send colours to OpenGL
as arrays rather than as individual bytes.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3019 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 17:41:00 +00:00
Per Inge Mathisen 4ee90ba9e3 Adapt radar view to PIELIGHT scheme. The radar colours have been changed a lot, and
we probably need to massage these colours a bit before release. Radar tile colours 
in all but objects only mode are a complicated blend of tile height and colour. Closes
patch #858.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3018 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 17:23:34 +00:00
Per Inge Mathisen 4ddd4c28af Large PIELIGHT cleanup. Please report bad colours.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3017 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 16:09:23 +00:00
Freddie Witherden d2c456a45d Fix a nasty division by zero error introduced in r3015. Also fix balancing in single player as a result of changes in r3015.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3016 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 15:21:07 +00:00
Freddie Witherden bc6a3e90de Commit patch #878 by Coincidence with some modifications by me. This makes it so that experience gained is now linked to the 'quality' of the attacker relative to the victim.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3015 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 14:30:25 +00:00
Per Inge Mathisen f812300a8c Patch #877 by EvilGuru. The old health bar mode feature is gone, replaced by
another toggle on the same key that allows you to see health bars on your
droids and/or structures all the time, if you want. The toggle is no longer saved.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3014 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 14:25:54 +00:00
Per Inge Mathisen cf2985fb4c Update POFILES.in with removal of arrow.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3013 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 13:44:58 +00:00
Freddie Witherden 6844b2e510 Update the Code::Blocks and MSVC project files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3012 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 13:33:47 +00:00
Per Inge Mathisen 63211571b0 New utility function pal_Colour() creates PIELIGHT from RGB values.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3011 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 13:11:09 +00:00
Per Inge Mathisen 7e946c4943 Remove unused function draw3dLine()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3010 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 12:01:45 +00:00
Per Inge Mathisen 28c0cacb62 Update raw build system in regards to removal of arrow.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3009 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 11:59:16 +00:00
Per Inge Mathisen c2c732510f Remove unused, non-working arrow code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3008 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 11:58:48 +00:00
Freddie Witherden 2708cc023b Fix a bug in the video options screen whereby if the current video mode is not available anymore the game would crash.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3007 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 11:44:46 +00:00
Per Inge Mathisen 76840b01d2 Large PIELIGHT cleanup. Also cleans up tile drawing logic somewhat.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3006 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 00:33:03 +00:00
Per Inge Mathisen b963c15348 Clean up some ugly and unnecessary globals.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3005 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-08 17:50:38 +00:00
Per Inge Mathisen 259902ba34 Pressing the 'z' key (default keymap) will darken the terrain in areas where
you have no sensor coverage, and therefore cannot see enemy units moving.
Patch #876 by me and cybersphinx.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3004 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-08 17:32:05 +00:00
Per Inge Mathisen d37d94aaed Make tileScreenInfo static, at the cost of some, hopefully temporary, ugliness.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3003 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-08 16:49:49 +00:00
Dennis Schridde fde3e48eb1 Remove rules which could not ever be matched. The behaviour shouldn't change. If some Lex guru finds a mistake, please tell me. :)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3001 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-08 00:32:51 +00:00
Giel van Schijndel bd1609e838 * Add two variables: CC_FOR_BUILD & CXX_FOR_BUILD to aid in building for the "build" machine when cross compiling, instead of the "host" machine
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2999 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-07 21:51:52 +00:00
Per Inge Mathisen 59db49c55e Patch #875. Prevent the player from clipping through the terrain so often.
Restores the sane defaults for max zoom and angle from the original game,
and fixes the way the camera increase in height when passing over terrain.
Thanks to buginator for testing.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2998 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-07 21:49:28 +00:00
Per Inge Mathisen 864e182607 Add fps counter. Type 'showfps' in cheat mode to enable. Patch originally
by qamly, ported by buginator, style cleaned up by me. See patch #874.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2997 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-07 21:37:08 +00:00
Per Inge Mathisen 6c1f0aa784 Remove unused function. Remove unnecessary references to VISIBLE_X|YTILES.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2996 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-07 21:29:55 +00:00
Dennis Schridde c540d8c070 Remove automake workarounds and require 1.10.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2995 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-07 21:09:34 +00:00
Dennis Schridde 3b84c84a68 Of course this wouldn't have worked like that... (automake depends on files, not on targets)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2994 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-07 20:59:44 +00:00
Dennis Schridde 4e3cdc53c6 Some fixes for autorevision buildsystem. Still doesn't work as expected...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2993 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-07 19:36:04 +00:00
Giel van Schijndel ec392ef7d4 * Improve the quality of the QuesoGLC error messages produced when fonts cannot be loaded/selected
* When we're unable to select a font face give a warning (LOG_WARNING) instead of an error (LOG_ERROR)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2992 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-07 19:31:19 +00:00
Dennis Schridde 2dffc94d18 Update po/ once in a while...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2991 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-07 19:30:43 +00:00
Dennis Schridde b2ebf09f4f Moving these scripts out of my way... They need to get a bit more organized, taken into a subfolder, etc. Will do that later.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2990 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-07 19:15:30 +00:00
Per Inge Mathisen c7aca00f05 More map cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2989 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-06 22:08:19 +00:00
Per Inge Mathisen d7f6d50a5c Also make sure we clear droid actions that require valid targets when these
targets are cleared out from the map.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2988 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-06 22:07:11 +00:00
Per Inge Mathisen 747df597fb Map code cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2987 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-06 21:25:56 +00:00
Per Inge Mathisen ed05f84188 Make sure objects that belong to defeated players that are cleared out at
the end of a completed mission are not referenced by the player's objects.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2986 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-06 21:20:08 +00:00