Commit Graph

3514 Commits (c7b40d85669dd5cc8d2efeae748e05e3be4e4efc)

Author SHA1 Message Date
Giel van Schijndel c7b40d8566 Revert r4416
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4417 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:46:37 +00:00
Giel van Schijndel ad68743327 Temporarily disable -Wmissing-declarations for lib/framework
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4416 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:33:05 +00:00
Giel van Schijndel 2fb4cf960b Fix compile error introduced in r4413 (oops)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4415 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:22:55 +00:00
Giel van Schijndel e9c167118d Fix beacon code for real (r4408 used sizeof for the source variable, while it should be the destiniation)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4413 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:16:33 +00:00
Roman C 95f48377d5 Updated ChangeLog (Trunk).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4412 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:10:08 +00:00
Roman C 5354c5272f Fixed beacons code corrupting asStructLimits[] on linux.
Patch by Buginator.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4408 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:00:30 +00:00
Roman C 5344f90d1c Balancing:
Tank Killer now fires 4 projectiles (to match its turrent gfx), total average firepower stays unaffected.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4407 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 17:45:32 +00:00
Giel van Schijndel 931f87f70a * Remove whitespace from the end of lines
* Add a FIXME note about needing to control the calling frequency of handleAbandonedStructures externally
 * Moved variable reductionAmount into the most local scope
 * Rename iterator `i` to `player`


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4406 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 13:27:54 +00:00
Freddie Witherden 29578ca90f Cleanup of calcDamage in projectile.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4405 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 13:18:05 +00:00
Freddie Witherden 7c08673bcb Commit patch #1030 which prevents structure painting.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4404 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 13:11:04 +00:00
Per Inge Mathisen be566a7d6d Add -Wcast-align and -Wmissing-declarations to autoconf debug builds, and fix warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4403 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 23:28:44 +00:00
Giel van Schijndel 359efe39ac Const fix
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4402 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 23:09:32 +00:00
Giel van Schijndel db7f049617 Const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4401 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 22:21:37 +00:00
Giel van Schijndel c3fcd4bf33 * don't take ownership of sDefaultDesignTemplate.pName as it triggers double free()s
* ASSERT on a condition that __will__ cause a double free()
 * Only assign &sDefaultDesignTemplate to pTemplate if we're sure we can use it


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4400 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 21:32:34 +00:00
Per Inge Mathisen c90b50b75c Workaround for bug when cleaning up template names.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4399 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 21:29:20 +00:00
Dennis Schridde d6347dd5e7 Include climits (instead of unistd.h) for PATH_MAX. Use C++ headers instead of C ones.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4398 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 19:24:31 +00:00
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