Dennis Schridde
cb2e3c3201
New interpreter functions for initialisation, cleanup and copy (incl. conversion, will be used later). Shall replace special string handling.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4344 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 01:54:27 +00:00
Dennis Schridde
b9f91361fc
Minor cleanup of script parser
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4343 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 01:06:00 +00:00
Roman C
36fa88f6f7
Aivolution:
...
-more taunts
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4342 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 00:52:51 +00:00
Dennis Schridde
02ae258b75
Was printing the wrong opcode for binary/unary operators
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4341 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 00:48:41 +00:00
Dennis Schridde
480314fed0
Enhance copeprint capabilities and add more 2string functions for the scripting engine.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4340 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 00:45:03 +00:00
Dennis Schridde
ce8e1d1846
- Generic cleanup
...
- Strings are not equivalent to anything, only convertible (mistake in one of my last commits)
- Clarify names
- Print user types
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4339 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 00:27:56 +00:00
Roman C
7092a1f808
Aivolution:
...
-make sure dialogs AIs are involved in are visible to all allies
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4338 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 00:05:15 +00:00
Dennis Schridde
c7a9f0f166
Give the bool2string function back...
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4337 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-25 23:54:28 +00:00
Per Inge Mathisen
2f049ab0f0
Fix crash when map_Height is given negative coordinates.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4336 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-25 21:30:35 +00:00
Roman C
2e66547554
Aivolution:
...
Fixed a script function calling getPlayerName(-1) and causing an assert.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4335 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-25 21:22:56 +00:00
Per Inge Mathisen
38cfafe7b8
Rename --disable-debug to correct --enable-debug in configure --help
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4333 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-25 19:42:21 +00:00
Per Inge Mathisen
eaa506a47f
Do not re-enable texturing if it is already enabled.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4332 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-25 19:23:26 +00:00
Dennis Schridde
dddbb92429
Move bool2string() conversion function from tagfile.c to frame.h
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4331 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-25 14:41:04 +00:00
Dennis Schridde
7f73963108
Simplification
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4330 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-25 00:11:08 +00:00
Dennis Schridde
b2f947ff53
indention ? spaces : tabs ;
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4329 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 23:39:59 +00:00
Dennis Schridde
5412840e85
Print another binary operator: concatenation.
...
You still should not call traceOn() from a script or enable interpTrace in the code...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4328 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 22:53:09 +00:00
Per Inge Mathisen
d6b226796e
Fix setting of droid movement coordinates. Hopefully this will spell the end
...
of the recent movement related asserts.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4327 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 22:49:21 +00:00
Dennis Schridde
13c531f6cb
Print float values, too. (script debug)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4326 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 22:22:56 +00:00
Dennis Schridde
679bfea007
Cleanup stackPopParams and make it handle the different INTERP_VAL types correctly.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4325 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 22:09:31 +00:00
Per Inge Mathisen
6db69592ed
Fix illegal order check to correctly process UNKNOWN orders.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4324 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 21:35:04 +00:00
Dennis Schridde
e402233597
Add type to string function (i.e. to be used for error messages). Allow bool, int, float to be converted into strings in interpCheckEquiv().
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4323 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 20:57:07 +00:00
Per Inge Mathisen
5540146c92
Add more CHECK_DROID calls, and cosmetic updates.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4322 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 20:56:06 +00:00
Per Inge Mathisen
d7136d8290
Reject droid move packets containing illegal movement coordinates.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4321 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 20:55:23 +00:00
Per Inge Mathisen
f0dae06115
Clean up moveCalcBlockingSlide(), removing dead code and moving variables.
...
Fix crash due to decrementation of an origin droid position.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4320 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 20:27:49 +00:00
Per Inge Mathisen
3dd337b73f
Fix variable that might be read unset. Reported by Valgrind.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4318 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 19:24:07 +00:00
Roman C
f467891edc
Fix the ai-taking-over-human-player-droids fix.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4317 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 18:50:48 +00:00
Roman C
d8ba581350
Prevent AI from taking over human player units when a player leaves an mp game.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4316 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 18:42:49 +00:00
Dennis Schridde
927c82aed0
C89 requires NULL
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4315 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 17:19:47 +00:00
Per Inge Mathisen
9d4cec56de
Fix build action code that would send droids off to build at (0, 0) occasionally.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4314 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 17:11:44 +00:00
Dennis Schridde
1c4901ce29
GCC says: "suggest parentheses around assignment used as truth value"
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4313 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-24 16:58:26 +00:00
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