Commit Graph

3477 Commits (9acf48f307ffabd9b85b3de1e544a5243f8c0f57)

Author SHA1 Message Date
Giel van Schijndel ae4faeac64 * Remove an unnecessary #include directive from `clparse.c`
* widgbase.h depends on piedef.h so #include it


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4262 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 18:30:41 +00:00
Giel van Schijndel d4adf8fe42 Use enum `iV_fonts` instead of `int` to represent fonts in the widget code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4261 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 18:12:23 +00:00
Per Inge Mathisen e58914539c Add some extra asserts to buildModule, to help track down bug #11346.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4260 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 17:45:38 +00:00
Per Inge Mathisen bed974ab67 Make sure we do not act on bad orders received over the network. Should workaround
bug #11358: another crash in multiplayer, reported by Paul Wise (pabs). There is still
probably a problem in the code, which sends out bad orders.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4257 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 16:57:49 +00:00
Per Inge Mathisen f32e11e4d2 Fix wrong name for language function.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4255 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 16:22:32 +00:00
Giel van Schijndel 8d15dc2ba1 * Log a warning when we've just decoded an empty OggVorbis track
* On DEBUG builds free() the memory associated with that track and return NULL (which __will__ cause program termination if it occurs)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4254 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 16:14:28 +00:00
Dennis Schridde d19e1a7927 Save/load in configuration.c not in random places.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4253 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 15:58:10 +00:00
Giel van Schijndel 535e12a5ef When failing to load a resource (WRF), generate a debug message about what file failed
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4252 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 15:55:36 +00:00
Per Inge Mathisen c99067c952 Fix copy&paste error from r2827.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4250 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 15:16:58 +00:00
Dennis Schridde 87f3224fa6 The preprocessor checks never really worked...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4249 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 15:16:29 +00:00
Giel van Schijndel 074851afbc Add a bash script to update POTFILES.in with
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4248 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 14:30:49 +00:00
Per Inge Mathisen 6c00cf4c70 Make asPower statically initialized instead of malloced.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4247 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 14:23:23 +00:00
Per Inge Mathisen f698bf5fa7 Set LANG environment variable when changing languages. Attempt to fix
the i18n menu option for Windows users.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4246 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 14:18:23 +00:00
Giel van Schijndel 7785437073 return the success/failure status from the NETenum template
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4244 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 14:00:30 +00:00
Giel van Schijndel cfb8b2c58c Set mime-type for nettypes.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4243 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:54:03 +00:00
Giel van Schijndel cf6ea01b4a * In NETstring use memcpy to copy the string and guarantee NUL-termination manually
* strlcpy() is unsafe if we cannot trust the source string to be NUL-terminated (as strlcpy does "return strlen(src);")


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4242 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:50:54 +00:00
Giel van Schijndel 6cd8e03773 Document NETstring (Doxygen documentation) and use strlcpy instead of memcpy to guarantee NUL-termination
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4241 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:48:25 +00:00
Giel van Schijndel fbf0395b7e Also test NETenum in the nettypes unit test
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4240 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:35:01 +00:00
Giel van Schijndel f26ccb421d Wrap function-macro NETenum in a do{}while(0) loop
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4239 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:33:27 +00:00
Dennis Schridde 57afe59782 Use the unique, untranslated pName to identify templates, not anything else. (This would create trouble with translations.) Fixes bug #11345.
Cleanup loadDroidTemplates and loadDroidWeapons.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4238 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:17:30 +00:00
Giel van Schijndel 6aa9b6fa35 * Declare static string constants as `static const char string[]` rather than `char* string` (guarantees both constness and that we won't accidentily change the pointer)
* In NETcoder declare string str the same size as original (using sizeof), use sizeof() instead of magic numbers


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4237 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 13:12:58 +00:00
Giel van Schijndel e18a6100f7 Backport r4235 from the 2.1 branch into trunk:
Strip the Debian package of symbols and put the symbols in a separate package: warzone2100-dbg


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4236 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 12:19:28 +00:00
Dennis Schridde 39f34056a9 Import from __future__ has to be first in file. Additionaly let the lobby tester connect to lobby.wz2100.net
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4234 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 00:33:16 +00:00
Dennis Schridde 2ba55d14a8 Record the time of compilation, too.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4233 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 00:05:41 +00:00
Dennis Schridde 02f3422fb3 Remove linebreak as it messes up formating for some reason.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4232 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 23:55:24 +00:00
Dennis Schridde 6e89ffe22b Forgot to include physfs
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4231 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 19:11:29 +00:00
Per Inge Mathisen 6185741b66 patch #1018: Experimental language selection menu option.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4230 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 18:30:08 +00:00
Roman C 3b1c952de1 Speed up script execution when "--debug script" is not enabled.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4228 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 17:42:07 +00:00
Roman C a4ecc477be Speed up a scripting function.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4226 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 17:30:57 +00:00
Roman C 8478728699 Get rid of an unnecessary debug() call.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4225 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 17:23:28 +00:00
Dennis Schridde 758270e3c6 Copy translations from branches/2.1 and update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4224 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-22 00:35:12 +00:00
Giel van Schijndel 57389641e7 Remove the last content of deliverance.h (#define MAX_STR_LENGTH 256) to wzglobal.h and remove it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4219 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 23:02:22 +00:00
Giel van Schijndel e9d0c77347 Get rid of macro constant MAX_NAME_SIZE
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4218 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 22:49:01 +00:00
Giel van Schijndel 204f827bf7 Get rid of macro constant MAX_STR_SIZE
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4217 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 22:17:56 +00:00
Giel van Schijndel d3588bc4ad make printBaseObjInfo, printComponentInfo and printWeaponInfo static functions
* const correctness


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4214 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:37:26 +00:00
Giel van Schijndel 4d65c133b1 const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4213 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:37:21 +00:00
Giel van Schijndel 12f8bbbb31 Clean out unused trash from resource.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4212 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:37:15 +00:00
Giel van Schijndel 7f09ef6a28 get rid of an unnecessary goto-statement
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4211 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:37:09 +00:00
Giel van Schijndel 0e522201e0 Cleanup:
* Turn some file-level comments into Doxygen comments
 * Add #include guards to some headers that didn't have them yet


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4210 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:37:01 +00:00
Giel van Schijndel 8138e1b0d8 Turn some file-level comments in lib/widgets into Doxygen comments
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4209 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 21:36:39 +00:00
Per Inge Mathisen a622880946 Increase warning level and do cosmetic cleanup and remove dead code in events.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4208 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 16:52:10 +00:00
Dennis Schridde 9ca4445189 We always only have either config.h or config-macosx.h, but not both.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4207 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 16:38:57 +00:00
Giel van Schijndel 8421b9fee4 Turn some file-level comments in lib/widgets into Doxygen comments
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4206 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 15:40:23 +00:00
Giel van Schijndel de2b3ba61d Move psRetWidget into the W_SCREEN structure (instead of it being a global variable)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4205 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 15:40:09 +00:00
Dennis Schridde b1b2859ea3 New enum TEXPAGE_TYPE, to better control disabling/enabling of texturing. (Changed pie_SetTexturePage accordingly.)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4202 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:34:30 +00:00
Giel van Schijndel 9895df559d Make widgCreateScreen return the screen it created or NULL on failure
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4200 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:42 +00:00
Giel van Schijndel 3ed3acd891 Clean up formCreate and widgAddForm:
* Make formCreate and widgAddForm take their psInit parameters as const
 * Make formCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4199 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:36 +00:00
Giel van Schijndel 86ca2b5f06 Clean up editBoxCreate and widgAddEditBox:
* Make editBoxCreate and widgAddEditBox take their psInit parameters as const
 * Make editBoxCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4198 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:30 +00:00
Giel van Schijndel 6ea7968f46 Clean up labelCreate and widgAddLabel:
* Make labelCreate and widgAddLabel take their psInit parameters as const
 * Make labelCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4197 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:20 +00:00
Giel van Schijndel 7e6e7d8b1f Clean up buttonCreate and widgAddButton:
* Make buttonCreate and widgAddButton take their psInit parameters as const
 * Make buttonCreate return the button it created or NULL on failure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4196 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-21 14:22:15 +00:00