Per Inge Mathisen
b58826bce4
Fix assert in widget code by simply increasing maximum major tabs that can be shown.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4397 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 18:41:53 +00:00
Roman C
c31930bef7
Fixed asserts in map_Height() which were caused by burn effect being off map.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4396 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 18:19:45 +00:00
Giel van Schijndel
6025e0ccbb
* Use a signed integer for "%n" (as the C89 & C99 specs require that)
...
* Don't initialise vars that don't need initialising
* Use UDWORD instead of unsigned int as we're passing a pointer to those variables into a function that takes UDWORD* pointers, which can be dangerous if sizeof(unsigned int) != sizeof(UDWORD)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4395 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 18:11:39 +00:00
Giel van Schijndel
b77f2e2adc
use size_t to store sizeof() values in
...
Also make those "size" variables const as they're never modified after initialisation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4394 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 17:44:04 +00:00
Giel van Schijndel
2917a1af70
Make sure to set the pointer to NULL when it's free'd (as it's still in scope)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4393 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 17:41:38 +00:00
Giel van Schijndel
ff13f9f9c3
small if-statement restructuring
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4392 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 17:36:45 +00:00
Giel van Schijndel
f8d8c3bbff
free() when our pointer leaves scope without being assigned to some external pointer (i.e. prevent memory leaks)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4391 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 17:22:19 +00:00
Freddie Witherden
80e85bffb2
Remove some dead (#ifdef RESOURCE_NAMES) code in structure.c and feature.c.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4390 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 17:01:19 +00:00
Roman C
3d706f16c9
Added a debug message to debug beacon crash.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4389 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 16:47:43 +00:00
Freddie Witherden
3d792dcd65
Remove some unused #ifdef'ed code in structure.c
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4388 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 16:27:31 +00:00
Giel van Schijndel
5e50119a53
Fix compilation of autorevision on Windows (a copy&paste error)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4387 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 15:24:37 +00:00
Dennis Schridde
7a688bdf45
Better debug output
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4386 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 12:08:13 +00:00
Dennis Schridde
40a2257a31
Fix NameError, Remove code duplication by using private method, Move private methods to top
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4385 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 12:02:37 +00:00
Dennis Schridde
e28cf1ce77
Using the kludge for GNU Flex < 2.5.30 was slightly incorrect. Correct way is present in 2.5.9 already.
...
Additionaly use the kludge found on http://flex.sourceforge.net/manual/faq_002dmemory_002dleak.html
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4384 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 11:05:19 +00:00
Dennis Schridde
7b5934d762
French ~67%
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4383 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 11:04:54 +00:00
Roman C
9197e3a9ea
Aivolution:
...
-added a way to find out if playing against aivolution: "are you aiv?" command.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4382 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 01:08:34 +00:00
Giel van Schijndel
93517102da
Add code for extracting the Subversion revision numbers from a git-svn repository
...
Inspired by http://svn.voria.com/code/synfig-studio/trunk/build_tools/autorevision.sh from Paul Wise
(GPLv2, git invocations where taken from that script)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4380 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 00:37:29 +00:00
Dennis Schridde
f888cc5b69
Revert 4344-4347, 4355, 4357, 4358, 4362: They caused too much slowdown in the scripting engine
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4379 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 18:38:25 +00:00
Dennis Schridde
88fc127503
Russian ~10%
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4378 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 17:31:09 +00:00
Roman C
d95b7c75eb
Aivolution:
...
drop a beacon before sending a command, not vice versa
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4377 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 17:16:58 +00:00
Dennis Schridde
89d1ea6a3d
Old versions of GNU Flex (i.e. 2.5.4) dont provide yylex_destroy
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4376 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 17:09:16 +00:00
Dennis Schridde
9acf48f307
Check games every 100 requests
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4375 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 16:47:06 +00:00
Giel van Schijndel
bb4c6e56c2
* Mark some variables as volatile (they're shared across threads)
...
* Assert proper usage of ReadWriteMutex
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4374 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 16:30:41 +00:00
Giel van Schijndel
c69c15e160
Remove futile svn:mime-type text/plain (because they're not just plain text...)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4373 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 16:05:40 +00:00
Dennis Schridde
8370aa874c
Use globals
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4372 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 15:49:26 +00:00
Dennis Schridde
132c61b913
test->check + cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4371 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 15:45:59 +00:00
Dennis Schridde
88cf9281ed
Move vitality test into game class
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4370 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 14:23:46 +00:00
Dennis Schridde
227976de92
Move debug message (gamedb has its own header, no need to repeat it)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4369 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 14:22:32 +00:00
Dennis Schridde
c7824914e0
Mention client IP in debug messages
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4368 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 14:17:33 +00:00
Dennis Schridde
d85628ef27
gdb->gamedb and dont let struct.error raise over handle()
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4367 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 14:09:44 +00:00
Dennis Schridde
4108ad54fc
Fix "AttributeError: Game instance has no attribute 'requestHandler'"
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4366 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 14:03:42 +00:00
Dennis Schridde
7a08a17a6b
Indention Bug (tm)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4365 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 13:09:14 +00:00
Dennis Schridde
39a4686df7
Mistake in last commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4364 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 12:48:08 +00:00
Dennis Schridde
6ab996879b
Cleanup indention
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4363 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-27 12:45:12 +00:00
Dennis Schridde
e6e09ee72a
Differ between deep (i.e. incl strings) and non-deep (just the pointer) copies
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4362 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 21:43:39 +00:00
Roman C
c2b88ff3d1
Updated ChangeLog.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4361 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 18:54:22 +00:00
Roman C
2f74b5fe73
To chat use ENTER key instead of T (key assignment must be reset for the changes to have effect).
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4360 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 18:52:52 +00:00
Dennis Schridde
ffc7a71601
Make MSVC happy
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4359 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 16:42:16 +00:00
Dennis Schridde
496e781146
Dont allocate the string again during direct copy
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4358 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 15:37:16 +00:00
Dennis Schridde
9bffb40f82
stackPop can utilise stackReduce
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4357 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 15:01:15 +00:00
Dennis Schridde
3eecd4fd7b
Move interp*2string to script*2string
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4356 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 14:57:35 +00:00
Dennis Schridde
10670360cd
Cleaned stackPush and stackShutdown, stackRemoveTop can remove more than 1 item now.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4355 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 13:52:31 +00:00
Dennis Schridde
44d2b96472
Removed unused (commented out) chunk of stack manipulation
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4354 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 13:27:19 +00:00
Dennis Schridde
65b9f9b204
r4351: Port memleak fixes from 2.1
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4353 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 12:49:51 +00:00
Dennis Schridde
9c70b95b60
Revert useless memleak "fix".
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4352 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 12:41:16 +00:00
Dennis Schridde
0508f962b5
Fix memleak in displayTitleBitmap by allocating static buffer
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4350 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 12:15:28 +00:00
Dennis Schridde
ee286efa0f
Fix lexer memleaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4348 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 11:28:25 +00:00
Dennis Schridde
9019233d1a
Properly copy string->string
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4347 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 10:26:15 +00:00
Dennis Schridde
6fdc8dd8b1
Dont store values and types seperately.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4346 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 02:35:26 +00:00
Dennis Schridde
53e30f187e
Remove debugging junk
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4345 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-26 01:58:40 +00:00