Dennis Schridde
c615222844
update-po
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4312 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 16:57:14 +00:00
Dennis Schridde
10f2ccfd56
TRUE->true, FALSE->false (except in scripts)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4311 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 16:51:17 +00:00
Dennis Schridde
9b94b011bb
Better definition of a NULL pointer
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4310 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 16:44:59 +00:00
Roman C
cc314a18a2
Don't use friend-foe console text colors for the lobby.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4309 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 16:29:45 +00:00
Per Inge Mathisen
a95fd43c19
Make sure we handle droid position close to origin correctly in updateDroidOrientation()
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4308 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 16:06:43 +00:00
Per Inge Mathisen
775637ef95
Fix some -Wextra warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4307 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 16:02:11 +00:00
Per Inge Mathisen
8cdba46504
Workaround for addTemplate() crash
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4306 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 15:44:46 +00:00
Giel van Schijndel
ad67fb8533
Revert the disabling of the exceptionhandler in r4304
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4305 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 15:41:34 +00:00
Giel van Schijndel
dcc1536f58
Backport r4221 from the 2.1 branch to trunk:
...
* Fix warning regarding array bounds
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4304 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 15:40:13 +00:00
Per Inge Mathisen
a15aaaa4c7
Sprinkle CHECK_DROID throughout the movement code to catch the perpetrator
...
of bad droid position coordinates.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4303 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 14:21:08 +00:00
Dennis Schridde
0340ba4f7e
Fix poedit's mistakes
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4296 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 12:58:30 +00:00
Dennis Schridde
5530bc9209
MAX_STR=MAX_STR_LENGTH and dont send/recieve the pName, but set it to NULL. (It is not needed but for .txt templates.)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4295 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 12:51:11 +00:00
Per Inge Mathisen
710282fb60
Make map_Height() assert that its input is not negative to help find more
...
places where invalid coordinates are generated.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4294 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 12:43:16 +00:00
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