It's loaded in from the stats files but unused throughout the rest of the code.
Read into a temporary dummy variable when loading stats.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5455 4a71c877-e1ca-e34f-864e-861f7616d084
It's loaded in from the stats files and copied all over a dozen places, but never actually __used__.
NOTE: This __shouldn't__ break savegames, I've checked it quite thoroughly, but game.c is evil & large enough that the chance exists I made a mistake in this department.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5454 4a71c877-e1ca-e34f-864e-861f7616d084
* Allow non-weapon VTOL droids to be passed into vtolHappy (e.g. sensor, construction, etc.): this should fix bug #11865
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5411 4a71c877-e1ca-e34f-864e-861f7616d084
* Fix a bug in r5409 where I accidentily reversed the weapon-reloaded logic
* Merge two nested if-statements
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5410 4a71c877-e1ca-e34f-864e-861f7616d084
* Trash the bool-array (previously bitmask) code
* Simply return false as soon as we've determined a VTOL isn't "happy" (i.e. marked as fully armed and healed)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5409 4a71c877-e1ca-e34f-864e-861f7616d084
* VTOLs didn't ever become "happy" again (i.e. where marked as fully armed and healed)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5407 4a71c877-e1ca-e34f-864e-861f7616d084
* This name more clearly describes what it does: determine whether the given droid has VTOL propulsion
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5404 4a71c877-e1ca-e34f-864e-861f7616d084
Clean scriptFreeCode's formating and remove unnecessary checks for ptr!=NULL before freeing.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5400 4a71c877-e1ca-e34f-864e-861f7616d084
Instead print the enum-number which we used to switch on.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5356 4a71c877-e1ca-e34f-864e-861f7616d084
fallback fix for non-debug builds. This to improve tracing of bug #11908:
crash - some assertion failed.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5345 4a71c877-e1ca-e34f-864e-861f7616d084
Exception is when generating the .wz files, where we need the path to the build directory and building a reverse relative path to $(srcdir) will be messy.
Also silence submake.mk a great deal.
Bug #11883 should be fixed now for the most part.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5325 4a71c877-e1ca-e34f-864e-861f7616d084
Their use is currently flawed, since it will not work in directories with spaces in them... (
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5319 4a71c877-e1ca-e34f-864e-861f7616d084
The info from this ASSERT is needed for a proper (and fully educated) fix of bug #11865. Thus please attach a backtrace to bug #11865 when this ASSERT gets triggered, and if possible add which VTOL type you ordered to or from a rearming pad at the time.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5314 4a71c877-e1ca-e34f-864e-861f7616d084
- Use PACKAGE, PACKAGE_VERSION, remove VERSION
- Allow out-of-source-dir builds (mkdir build && cd build && make -f ../Makefile.raw)
- Move config.mk from $(top_srcdir)/makerules/config.mk to $(top_builddir)/config.mk
When keeping current behaviour (srcdir=builddir), this means: Move it from makerules into the main directory
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5308 4a71c877-e1ca-e34f-864e-861f7616d084
* When lev_error() gets called do __not__ ASSERT, use debug(LOG_ERROR, ... instead as the return value of false will be used as an indicator of failure anyway (no need to abort as it will cause the --selftest to always fail)
* Accept empty input files for the .lev parser
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5285 4a71c877-e1ca-e34f-864e-861f7616d084
The playlist file is no a simple list of files to play during the game.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5281 4a71c877-e1ca-e34f-864e-861f7616d084
Still has a little global hole in it to transfer wall-locations out of the callback without cluttering the helper struct or the visibleObject() API.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5272 4a71c877-e1ca-e34f-864e-861f7616d084
Was using squared distances and pseudo-3d vectors in some inappropriate places
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5271 4a71c877-e1ca-e34f-864e-861f7616d084
you now always see the entire map on the radar. You can also change the size
of the radar window using the scroll wheel when cursor is over it.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5266 4a71c877-e1ca-e34f-864e-861f7616d084
bug on Intel Macs. Error introduced in commit r3592. Lesson: Don't use unsigned
if you do not absolutely need to.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5254 4a71c877-e1ca-e34f-864e-861f7616d084
Make parameter to RAY_CALLBACK void* instead of PROPULSION_TYPE.
- Often it was not interpreted anyway, and in the single case where it is used a PROPULSION_TYPE* is now passed.
- Allows more generic raycasting with less globals to keep state. (Not used currently, all globals remain in use.)
Cleanup rayPointsToAngle and add Vector3f wrapper.
Fix an occasion where magic 360 was used instead of NUM_RAYS.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5244 4a71c877-e1ca-e34f-864e-861f7616d084
* This replaces O(n * m * l) behaviour with O(n + m * l) behaviour (where n is the amount of rows returned by a query, m the amount of columns resulting from a query and l the average length of each column's name)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5202 4a71c877-e1ca-e34f-864e-861f7616d084
* Add a new colour: WZCOL_MENU_SHADOW
* Use this colour instead of WZCOL_MENU_BACKGROUND to create a "Black shadow"
Closes#11; patch by Buginator
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5201 4a71c877-e1ca-e34f-864e-861f7616d084
* Use an "inheritance"-like approach when loading the stats and load all BASE_STATS and COMP_BASE_STATS in a single function rather than duplicating it in every loading function (cuts down in 230 lines, whee!)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5199 4a71c877-e1ca-e34f-864e-861f7616d084
* "table" will now attempt to load the given resource type from the given table (in the currently opened database)
* Maintain the current database's name (for error message, etc.)
* Pass the table name to the database loading functions and use it (in combination with sqlite3_mprintf) to produce the SQL statements
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5189 4a71c877-e1ca-e34f-864e-861f7616d084
* Add two new keywords to the .wrf files: "database" and "table"
* "database" will cause the given filename to be opened as a database file (using SQLite3)
* "table" will attempt to load the given resource type from the currently opened database
* Don't open the database in the file loading functions (src/data.c) anymore; turn them in table loading functions instead (which get the current database passed as a paramter)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5188 4a71c877-e1ca-e34f-864e-861f7616d084
* Open the SQLite3 database in src/data.c before invoking a load.*StatsFromDB function
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5187 4a71c877-e1ca-e34f-864e-861f7616d084
* Add the code to load sensors from the sensor table of the given database file (function `loadSensorStatsFromDB`)
* This code will make sure to load the sensor stats-data in a similar manner (i.e. the resulting data in-memory should be the same) to the sensor.txt loading code
* Use this stats loading implementation on single player
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5182 4a71c877-e1ca-e34f-864e-861f7616d084
* Add the code to load ECM entries from the ecm table of the given database file (function `loadECMStatsFromDB`)
* This code will make sure to load the ECM stats-data in a similar manner (i.e. the resulting data in-memory should be the same) to the ecm.txt loading code
* Use this stats loading implementation on single player
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5178 4a71c877-e1ca-e34f-864e-861f7616d084
* This should fix a heap corruption introduced with the new level_parser
Closes#9 ( http://trac.wz2100.net/ticket/9 )
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5163 4a71c877-e1ca-e34f-864e-861f7616d084
Largely simplified proj_InFlightIndirect.
Improved readability while functionality should be roughly the same.
Now this is very similar to the Direct function, except for differences noted.
Additionaly:
Comply to Per's codingstyle: Less spaces for more readability!
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5162 4a71c877-e1ca-e34f-864e-861f7616d084
Should not create any problems, buildsystems were changed (MacOSX, please test).
Reason: Organisation, later: simplification.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5156 4a71c877-e1ca-e34f-864e-861f7616d084
This fixes a bug with maps smaller than max visible tiles area which would
either crash or create seams, re-reported by Buginator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5134 4a71c877-e1ca-e34f-864e-861f7616d084
the game, so you can launch the game via a external client.
Usage:
--host
(takes you directly to the host screen)
--join ip/hostname
(takes you directly to the join screen, you should see the game of the
ip/hostname that you specified.) The join patch was already comitted.
Author: Buginator
Date: Tue, 13 May 2008 01:23:54 -0400
Signed-off-by: Dennis Schridde <devurandom@gna.org>
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5108 4a71c877-e1ca-e34f-864e-861f7616d084
Note: Special hit-handling for homing weapons was removed, since that should already be done by the normal hit-handling.
(If our target was not among our neighbours, how can we ever be in range to hit it?)
Note: Since this is nearly a rewrite, code-reviews should concentrate on the logic, not on before-after comparison.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5107 4a71c877-e1ca-e34f-864e-861f7616d084
* Get rid of lexer function parseGetErrorData and use audp_get_lineno() and audp_get_text() instead
* Add a WZ_DECL_FORMAT declaration to audp_error to enable GCC's printf format checking
* In audp_error allocate the buffer on the stack using alloca() instead of an auto 1kB text buffer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5094 4a71c877-e1ca-e34f-864e-861f7616d084
-allow creation of unit templates on the fly
-allow direct access to major weapon stats from within scripts
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5014 4a71c877-e1ca-e34f-864e-861f7616d084
* 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
* 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
* 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
* 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
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
* 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
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