Commit Graph

4007 Commits (2bce339a72a7de287040f485e4fdbbbae5c48035)

Author SHA1 Message Date
Giel van Schijndel 2bce339a72 Make the scriptvals_parser reentrant as well (the lexer was made reentrant already in r5009)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5011 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 00:49:29 +00:00
Giel van Schijndel 9cd6c0cef3 Store the return value in a temporary rather than duplicating code paths inside & outside of an if-branch
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5010 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 00:44:22 +00:00
Giel van Schijndel 970d167c4f Make scriptvals_lexer reentrant
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5009 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 00:38:26 +00:00
Giel van Schijndel 701f65469c * Provide an abstraction of YY_INPUT so that we have a single definition which we can use in multiple lexers which can read from both in-memory buffers as well as PhysicsFS files
* Utilise this new version of YY_INPUT in script_parser and script_lexer


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5008 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 00:35:24 +00:00
Giel van Schijndel 2bc35a5714 Slight clean up of Bison & Flex options
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5007 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 00:02:48 +00:00
Giel van Schijndel ab6b574aaa Use yyextra instead of yyget_extra()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5006 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 23:45:00 +00:00
Giel van Schijndel baa6d4bcfe * Use yyget_extra() & yyset_extra() to pass the input to the level_lexer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5005 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 23:43:44 +00:00
Giel van Schijndel 3ad1b3ad91 * Produce level_lexer.lex.h for access to the lexer's functions from the parser
* Remove unused macro lev_getc


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5004 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 23:26:40 +00:00
Giel van Schijndel c737a75ce3 * Produce scriptvals_lexer.lex.h for access to the lexer's function from the parser
* Use scrv_get_lineno() and scrv_get_text() to retrieve the lexer's data on an error rather than custom function scrvGetErrorData
 * Move scrv_parse() out of the scriptvals.h header file as that function is only called from the file it's defined in


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5003 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 23:03:57 +00:00
Giel van Schijndel 1badf86412 * Use WZ_DECL_FORMAT to tell the compiler that scrv_error takes its parameters in printf syntax
* Fix a truckload of warnings caused due to useing the wrong format specifier when invoking scrv_error/yyerror (%s was used for UDWORD's)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5002 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 22:30:54 +00:00
Giel van Schijndel a4078601ea * Use the yyerror macro as provided by Bison instead of scrv_error (yyerror maps to the latter)
* Perform dynamic stack allocation instead of allocating 1kB in scrv_error


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5001 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 22:24:44 +00:00
Giel van Schijndel b51af0be98 * Use yyextra to pass in the input file for scriptvals_lexer instead of a custom global variable (will make it easier to turn it into a reentrant parser)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5000 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 21:08:32 +00:00
Giel van Schijndel f1846ea88a * Remove unused function PHYSFS_getc() from the scripvals lexer
* Use yytext instead of scrv_text as Flex will take care of the naming
 * Use yyget_lineno() instead of global var scrv_lineno


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4999 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 21:08:21 +00:00
Per Inge Mathisen 13fa22fcbf Revert r4932 and try a different fix instead, checking the number of tabs
actually allocated, and resetting the currently highlighted tab if it is
out of bounds.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4998 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 20:32:31 +00:00
Roman C d052513c74 Balance:
-all emplacements are now marked as "HARD" instead of "MEDIUM"
-hitpoints of all emplacements increased from 400 to 600

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4997 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 20:20:40 +00:00
Giel van Schijndel c5d9664316 * Move the actual clearing of the pathfinding node-table to new function fpathHardTableReset()
* Call this function from fpathTableReset() and new function fpathShutdown()
 * Add a function fpathShutdown() and call it from systemShutdown() in init.c to free up the pathfinding's memory on exit


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4996 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 19:57:51 +00:00
Per Inge Mathisen a98c3f9621 Render super-cyborgs using the bucket list, to avoid jittering HP bars.
Patch by Buginator.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4994 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 18:24:20 +00:00
Per Inge Mathisen bdb6bf9ef0 Silence compiler complaints about memory leaks in tile drawing code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4992 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 18:13:03 +00:00
Dennis Schridde c5187c9406 Import translations from branches/2.1@4990
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4991 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 15:40:29 +00:00
Dennis Schridde 9541f843c4 Fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4973 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-09 10:01:56 +00:00
Per Inge Mathisen fba8eca7a0 Remove unused declaration of fpathSetBlockingTile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4972 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-08 21:00:20 +00:00
Per Inge Mathisen 50886c9389 Ooops. Committed a debug call too many.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4971 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-08 20:25:18 +00:00
Per Inge Mathisen 7e999b7ead Make sure we release paths when we exit a map.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4970 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-08 20:10:31 +00:00
Per Inge Mathisen a65115e162 Add debug calls to try to debug crazy paths when blocked.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4969 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-08 18:55:06 +00:00
Per Inge Mathisen 4f543a66c8 Revert r2570 and adapt it to current trunk. This provides us with a
thread-safe function to check whether a tile has a tall structure.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4968 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-08 18:13:27 +00:00
Per Inge Mathisen 4294b5f6c4 Remove non-working path recycling code. Better rewrite this functionality from scratch later.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4967 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-08 17:44:02 +00:00
Per Inge Mathisen 3ac3130e3c Add some debug calls, remove unused code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4966 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-08 17:39:27 +00:00
Per Inge Mathisen 8a00071e05 Fix potential crash bug in path-finding code introduced in r4964.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4965 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 21:14:37 +00:00
Per Inge Mathisen 1a42ffda05 Remove the limit on how long a path can be, remove the attack wall hack, and remove
the line of sight optimization of paths. Experimental changes, so please do not backport.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4964 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 20:23:39 +00:00
Per Inge Mathisen ab90207cc0 Fix GUI crash when loading a specific savegame twice in a row. A button
did not exist but we tried to update it anyway.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4962 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 19:14:31 +00:00
Roman C b7f8e8e5be Balance:
-increased Lancer rocket cost from 100 to 125
-decreased Tank Killer cost from 250 to 200
-decreased Scourge cost from 330 to 300

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4961 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 18:25:12 +00:00
Per Inge Mathisen f3a5558e21 Pass propulsion type as a parameter to raycasting, path-finding and tile
blocking functions so that we do not have to set global state to know 
which kind of propulsion we are testing. This change is experimental, 
and may break VTOL behaviour subtly, please do not backport.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4960 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 16:37:46 +00:00
Roman C 1fd785ba09 Get rid of 100 "'return' : 'BOOL' differs in levels of indirection from 'BASE_OBJECT *const '" warnings on MSVC.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4957 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 14:50:48 +00:00
Roman C a7add1b15b Balance:
Got rid of "indestructible" T3 weapons, gave rockets more body points.

Weapon body points changes:
Mini-pods:		5 -> 120
Mini-Rocket Artillery:	5 -> 150
Lancer:			5 -> 200
Tank Killer:		5 -> 280
Scourge:		10 -> 350
Light Cannon:		200 -> 140
HVC Cannon:		400 -> 180
Medium Cannon:		350 -> 200
Heavy Cannon:		500 -> 280
Assault Cannon:		500 -> 330
Twin Assault Cannon:	500 -> 380
Needle Gun:		400 -> 280
Rail Gun:		500 -> 350
Gauss Cannon:		750 -> 430


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4956 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 14:31:27 +00:00
Roman C 511a26cdbf Decreased cost of Bug body by ~5% (commit test)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4955 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 14:19:00 +00:00
Dennis Schridde 0e21488f74 Last commit to solve bug #11656, fix by Paul Wise <pabs>.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4954 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 10:09:20 +00:00
Dennis Schridde 7655a44069 Fix issue where hosting a game and then exiting before it starts would not stop warzone from listening on its port.
Signed-off-by: Dennis Schridde <devurandom@gna.org>

- Also seems to fix other issues, like weird number of AIs after host-stophost-hostagain.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4953 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 10:06:49 +00:00
Dennis Schridde 68f160f782 update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4952 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 09:55:24 +00:00
Dennis Schridde e45f099f10 Brazilian portuguese from branches/2.1
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4951 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 09:54:55 +00:00
Dennis Schridde f958091769 Russian translation from branches/2.1
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4950 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-07 09:54:45 +00:00
Roman C b2023e3f0b Balance:
-Body balance tweaked to make later bodies better value than the early bodies, this results in a massive cost drop for heavier bodies *experimental*

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4946 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-06 20:00:00 +00:00
Freddie Witherden 237f56c1c3 Fix a syntax error in r4942 that gcc did not seem to mind about.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4945 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-06 18:03:35 +00:00
Freddie Witherden 073a0e5d55 Add some layout support code to the new widget system and clean-up some code in it.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4944 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-06 16:34:34 +00:00
Giel van Schijndel b58d508ce6 Doxygenize the parameterlist of frameInitialise
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4943 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-05 23:17:35 +00:00
Freddie Witherden 19b062a52a Cleanup of transporter.c (Dead/commented code removal). There should be no functionality changes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4942 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-05 18:03:08 +00:00
Freddie Witherden 6846c2645f Remove some dead-code associated with a never-used ray clipping method.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4941 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-05 16:50:59 +00:00
Per Inge Mathisen d0d089cfd0 Cosmetic cleanup of raycast.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4940 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-05 16:23:48 +00:00
Giel van Schijndel 01958db9a0 We don't #define HAVE_STRLCPY or HAVE_STRLCAT in the configure script anymore
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4939 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-05 15:12:32 +00:00
Giel van Schijndel 4cc79156a9 Make tile[SF][XY] const
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4938 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-05 14:01:41 +00:00
Per Inge Mathisen 5741927d9e More cosmetic cleanups. Add comment on previous hack fix.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4935 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-04 21:31:44 +00:00