Commit Graph

1623 Commits (898b9c5d728d4f3c6530924c46d5b68dd3732e6c)

Author SHA1 Message Date
Giel van Schijndel bae4d98dfa * Remove empty file gatewaymapdefs.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2015 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-03 14:38:37 +00:00
Giel van Schijndel 4b642cbdb7 * Rename wrongly named file model.hpp to model.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2014 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-03 14:30:48 +00:00
Giel van Schijndel 8192e5788e * Ignore yet another MSVC file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2013 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-03 14:18:00 +00:00
Giel van Schijndel cd5ada2263 * Use a tab-stop location to line stuff properly out
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2012 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-03 13:27:24 +00:00
Giel van Schijndel f0c12b8ae2 * rename some files to lowercase filenames
* convert M$ Word documents into OpenDocument text documents (OpenOffice.org handles this perfectly) (lets use open standards instead of property formats!)
 * remove WEDIT.DOC which seems to have been a duplicate of MANUAL.DOC or the otherway around, which doesn't matter really

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2011 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-03 13:24:14 +00:00
Giel van Schijndel 49b672aad7 * Remove a whole bunch of other MSVC files which apparently are not necessary
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2010 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-03 12:02:24 +00:00
Giel van Schijndel a1b1ac1f16 * Add tools/editworld/src/Debug to the ignore list since apparently this is MSVC's output directory
* Remove EditWorld.plg since this looks like a compilation report which we don't need in our repository (add it to the ignore list as well)
 * Another MSVC compilation output file to ignore list: EditWorld.ncb

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2009 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-03 11:59:52 +00:00
Giel van Schijndel 24e16176b8 * Allow larger display bitdepths than 16bit
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2008 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-03 11:54:35 +00:00
Giel van Schijndel 10a0d4be6e * Set mime-types and svn:eol-style on EditWorld's files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2007 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-03 11:48:40 +00:00
Giel van Schijndel 6f1064ad0e * Set bugtraq:url and bugtraq:logregex properties on some directories
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2006 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-03 11:26:14 +00:00
Giel van Schijndel 345b1d6106 * Revive EditWorld from the dead
* Give it a nicely oriented directory structure
 * Rename all files in src/ (I hope I didn't miss any) to lowercase (except for MSVC project files)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2005 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-03 11:06:42 +00:00
Per Inge Mathisen 3a77772598 Fix assert when saving while transport is leaving the map
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2004 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-02 22:36:58 +00:00
Per Inge Mathisen 51d982100e Fix crash and assert when transport is leaving map in campaign
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2003 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-02 20:37:01 +00:00
Per Inge Mathisen 289b0479f0 Fix crashes in game loading code introduced by reference counting framework
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2002 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-02 20:09:25 +00:00
Dennis Schridde 14fb2c9d3d Fix bug#9430
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2001 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-02 16:23:53 +00:00
Giel van Schijndel 12c3d78559 * Add "-Werror-implicit-function-declaration" to Code::Blocks project compile options
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2000 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-02 11:03:41 +00:00
Per Inge Mathisen 4fa38ab9b6 Missed two cases of pointer references to objects being set in src/ai.c. Fixed!
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1999 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-01 20:40:40 +00:00
Per Inge Mathisen 976c75191a Cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1998 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-01 15:26:53 +00:00
Per Inge Mathisen e06f29f87c Remove scrvGetBaseObj
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1997 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-01 14:51:28 +00:00
Per Inge Mathisen 49b1666441 Remove scrvLinkValues
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1996 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-01 14:30:19 +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
Per Inge Mathisen 64c9ca9ecd Optimize non-enabled calls to debug() by moving the if test before we do a function call.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1994 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-01 11:54:09 +00:00
Dennis Schridde bfb3775e83 Import ChangeLog for 2.0.7. Later versions will be added when they are released.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1993 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-01 01:20:03 +00:00
Dennis Schridde 714bcc5924 displayBuffer -> fileLoadBuffer, original patch by vs2k5. displayBuffer was abused to load nearly everything.
Reuse FILE_LOAD_BUFFER_SIZE macro, which was abandoned before. (That's also why fileLoadBuffer is now defined in src/init.c, even though the place is probably inappropriate.)
Make fileLoadBuffer static instead of malloced.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1992 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-01 00:28:49 +00:00
Dennis Schridde ae1bbe9894 Fix for wrong type by vs2k5.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1991 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-30 23:42:27 +00:00
Dennis Schridde c86c5aaa94 pie_export.py version 0.2, by kage:
as requested, it now provides a gui for setting the pie version -- you do this indirectly by setting the floating point precision (precision of 0 will create a "PIE 2", while anything else will create a "PIE 5"). note that only points will be given any extra precision at the moment, since i'm not sure how you want to handle texture coords. precision defaults to 0 (old pie format) since, afaik, pie 5 support in the engine is still lacking.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1989 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-29 17:09:03 +00:00
Per Inge Mathisen a4bf9eea4e Remove unused network code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1987 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-27 18:40:41 +00:00
Giel van Schijndel d55bd507c6 * Remove unused parameter char* DisplayBuffer from function pie_UploadDisplayBuffer (maybe we might as well remove this function altogether ?)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1986 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-27 12:30:29 +00:00
Giel van Schijndel 7da9c0e9ed * Remove non-static forward declarations from implementation file (they were duplicates of those in the header)
* Const correctness char* -> const char*
 * Remove a futile debug statement after a goto label (Ugh, game.c really *abuses* goto)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1985 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-27 12:07:40 +00:00
Giel van Schijndel 1f61b1918e * Drop another magic number; replace it by buttonX this represent the X coordinate of the left most buttons (the large buttons in the player/map/force/etc. selection menu in the multiplayer setup screen)
original patch by vs2k5 (to fix an incorrect X coordinate), modified by me to take care of the magic numbers as well
 * wrap some text strings in a gettext macro _()
 * expand some text to more complete/descriptive forms

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1983 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-26 19:05:51 +00:00
Giel van Schijndel 17e25433e0 * Make sure to check the died status of objects and set pointers to them to NULL if they're dead
* Treat objects that have there status set to died should be treated similar to NULL pointers to droids

Patches aipsactiontargetfix & projfix by Watermelon in mail with Message-ID: <ca0601900706260022h69c31e06lb993dd8679d77482@mail.gmail.com> on the development mailinglist

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1982 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-26 18:18:09 +00:00
Giel van Schijndel 225a70c1f1 * make (save|load)MultiStats const correct (saveMultiStats: char* -> const char*), (loadMultiStats: const char* -> char*)
* remove some unused pointer typedefs LPtypename
 * modify struct PLAYERSTATS to use uint32_t instead of SDWORD (yes I know that changes the signdness, that's intentional)
 * remove padding from struct SAVEDPLAYERSTATS which only served a purpose for the encryption/decryption code (that which was removed in r1953)
 * change name of PLAYERSTATS.loses to PLAYERSTATS.losses (former was a verb in the present time, latter is a noun indicating a count which is what this number essentially is: a counter of losses)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1981 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-26 16:14:09 +00:00
Giel van Schijndel e9c31811d3 * Decrypt data/multiplay/players/test.sta to comply with the removal of the encryption/decryption code from r1953
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1980 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-26 15:24:09 +00:00
Giel van Schijndel 5efc662df1 modify addMultiRequest:
* now takes two separate parameters; one for the search directory, and another for the file extension to match rather than having both combined as "path/*.extension"
 * function signature is now const correct (char* -> const char*)
 * remove WIN32 specific code and use PhysicsFS instead so that this function actually works on other platforms as well
 * remove some commented out code which required the 2nd character of the filename to be 'd' if (mode == MULTIOP_MAP && game.type == DMATCH)
 * remove an ugly goto statement which was used by the Pumpkin guys because apparently one of them didn't know how to use for-statements in combination with the continue statement (the goto code was Win32 specific as well btw, and nothing similar is required for PhysicsFS)
 * turn an awfully long row of if-statements into a single switch statement
 * add a Doxygen description to this function

 * change all code using addMultiRequest to match the new function signature

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1979 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-26 13:43:35 +00:00
Giel van Schijndel ba4a019b9a * prevent player name (in multiplayer games) from becoming an empty string
* const correctness char* -> const char*

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1978 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-26 09:01:04 +00:00
Giel van Schijndel 84a07b03a5 * Remove unused (and sometimes empty) functions sound_SetSamplePan, sound_SetSampleVolAll, sound_GetMaxVolume, audio_GetMixVol, audio_Get3DVolume
* Remove global var g_i3DVolume and audio_Set3DVolume which would set its value since g_i3DVolume was never ever read (well audio_Get3DVolume read it, but this function never got called)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1976 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 19:04:33 +00:00
Dennis Schridde 28358cb9e3 Backport r1973: Verbose problem report for not found gdb or program.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1974 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 18:17:43 +00:00
Giel van Schijndel 18dcb24b3c * Rename functions
mixer_GetCDVolume    to sound_GetMusicVolume
   mixer_SetCDVolume    to sound_SetMusicVolume
   mixer_GetWavVolume   to sound_GetUIVolume
   mixer_SetWavVolume   to sound_SetUIVolume
   mixer_Get3dWavVolume to sound_GetEffectsVolume
   mixer_Set3dWavVolume to sound_SetEffectsVolume
 * Make the above functions use floats instead of SDWORD (int32_t) and use a range of 0.0 - 1.0 instead of 0 - 100
 * Remove global var g_iGlobalVol which was only used by one function and wasn't reused in multiple calls, now use a local function var instead: float originalVolume

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1972 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 18:09:38 +00:00
Dennis Schridde d301fd3a82 Enhance POSIX crashdump with time of execution (not crash!)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1971 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 18:04:39 +00:00
Dennis Schridde 0c46dfdea3 - Get full path to warzone binary, so gdb can actually find it. (It runs in an empty env, so it doesn't even have PATH.)
- Add some debug output (which will never get shown, since we setup the crashhandler before the debughandler).


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1968 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 17:35:09 +00:00
Dennis Schridde b3f62323d4 This time fix it really. Thanks EvilGuru.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1967 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 16:29:15 +00:00
Dennis Schridde 1a61e63fc4 Fix a mistake which resulted in infinite loops and horrendously big logfiles. Thanks to Kamaze and EvilGuru.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1966 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 16:18:04 +00:00
Dennis Schridde 428c893226 Revert to the old implementation of STATIC_ASSERT. Beware: This does not work in global context (outside of a function).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1965 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 12:34:39 +00:00
Giel van Schijndel 78389548d8 * Move #ifdef EDIT_OPTIONS so that some IDOPT_EDIT code is properly commented out
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1964 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 22:13:13 +00:00
Per Inge Mathisen 0b3a3367b9 Rollback commit 1960, since I want to make this edit stuff work later
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1963 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 21:58:42 +00:00
Per Inge Mathisen 4390632ce8 Add missing header guards
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1962 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 21:51:29 +00:00
Giel van Schijndel e3d9c70e94 * remove unused function audio_Get2DPlayerRotAboutVerticalAxis
* remove global var g_bStopAll which seems to function as some kind of crude (and non-functional) mutex lock (while Warzone doesn't even uses threads!)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1961 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 21:11:43 +00:00
Giel van Schijndel 2602677f39 * Remove effectively commented out code (was enclosed by `#ifdef EDIT_OPTIONS` conditionals while EDIT_OPTIONS was never defined)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1960 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 19:54:06 +00:00
Ari Johnson ddd8464d0d Updated Xcode project file to reflect removed netcrypt.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1959 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 19:46:28 +00:00
Giel van Schijndel 46434a1e5d * Remove global var BOOL display3D which is always true anyway
* Adapt all code that depends on display3D by either removing if (!display3D){} code or removing the conditional around if(display3D){}
 * remove now useless function audio_Display3D (returned display3D) and now unused function audio_Get2DPlayerPos

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1958 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 19:38:36 +00:00