Per Inge Mathisen
284b157ba0
Fix bad clipping of projectile coordinates. Was slipping through negative
...
coordinates.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4292 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 12:31:38 +00:00
Per Inge Mathisen
95bd262c7a
Fix overzealous order sanity test.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4291 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 12:03:43 +00:00
Per Inge Mathisen
a8145dd7d6
Add assert to catch sending of bad group orders.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4290 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 10:29:30 +00:00
Steven Koenig
e04406d7be
Corrected some mistakes, rephrased some things
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4289 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 09:28:55 +00:00
Giel van Schijndel
ed37f5a2d0
Add some header guards to scrap.h
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4288 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 00:59:05 +00:00
Giel van Schijndel
918be1e737
Get rid of the widget heap initialisation stuff
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4287 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 00:32:00 +00:00
Per Inge Mathisen
fa8ff02353
Send untranslated template name across the network.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4286 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 23:36:10 +00:00
Per Inge Mathisen
c9b02ed32c
Fix strdup of itself bug.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4285 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 23:19:53 +00:00
Roman C
cdf90a2002
Aivolution:
...
-don't ask for help when already defeated
-disabled an unnecessary assert
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4284 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 22:46:06 +00:00
Per Inge Mathisen
5d05bd6051
When reinitializing droid movement between missions, make sure it is
...
properly initialized for floats, and not just memset to zeroes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4282 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 22:26:55 +00:00
Roman C
c4c534f799
Enclose a debug messages into #ifdef DEBUG ... #endif
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4281 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 22:25:10 +00:00
Roman C
5045ee4d27
Aivolution:
...
Attempt to avoid division by 0.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4280 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 22:19:19 +00:00
Roman C
a1008c093d
Reduce amount of junk in the MSVC compilation output by about 70%.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4279 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 22:15:28 +00:00
Steven Koenig
ab468e22e7
* Redone and double-checked German translation
...
* Closer to the original translation, unified recurring words/phrases, 95+% new or modified
* Almost everything is translated now; everything that a normal player will ever see in-game is translated now (2/2230 strings remain untranslated)
* Kreuvf's first commit ever
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4278 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 22:07:53 +00:00
Per Inge Mathisen
c5b969997a
Have to comment out an assert which makes the campaign near impossible to play.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4277 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 22:07:41 +00:00
Roman C
215359543f
Remove unused function declaration.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4276 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 20:47:57 +00:00
Per Inge Mathisen
a6be081b1f
Fix warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4275 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 20:44:52 +00:00
Dennis Schridde
1e26e33fc4
Make it look *exactly* how it looked before my commit... Maybe that finally fixes MSVC
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4274 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 20:16:13 +00:00
Dennis Schridde
5b1a32f9ac
pName is the unique name, not a translated name...
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4273 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 20:12:15 +00:00
Roman C
399e92a1ed
Make sure chat messages won't be overlooked during mp games by making chat messages stand out from system messages.
...
If enemy/foe radar colors are on (SHIFT+TAB) then all ally messages are yellow, enemy messages are red. If enemy/foe mode is off all chat messages are simply brighter than system messages.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4272 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 20:04:37 +00:00
Giel van Schijndel
438712585c
wrappers.c doesn't depend on widget code, so don't #include it
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4270 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 19:30:43 +00:00
Dennis Schridde
5beaf745bf
Fix missing identifier LC_MESSAGES for MSVC
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4269 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 19:29:41 +00:00
Dennis Schridde
f8b62a6e77
Simplify i18n handling by moving all system dependend stuff into lowlevel functions.
...
Support changing the language via the menu on Windows.
Don't save the language name to the config file. Use the ISO639 style identifier instead.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4268 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 19:22:09 +00:00
Dennis Schridde
f14f2f74bf
Ship portuguese, too.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4267 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 19:18:38 +00:00
Giel van Schijndel
150f0ed209
#include fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4266 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 19:08:49 +00:00
Per Inge Mathisen
fa476549e3
Fix problem I introduced in r4013 that would make buildings occasionally get 0 hp.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4265 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 19:01:04 +00:00
Giel van Schijndel
19c5c083d3
main.c doesn't depend upon widget code, so don't #include widget.h
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4264 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 18:43:08 +00:00
Giel van Schijndel
b19b0bcda6
widgbase.h depends on textdraw.h so #include it...
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4263 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-23 18:33:59 +00:00
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