Commit Graph

2095 Commits (34e4246bd4936ffc04bd1975670093e1c9aefd37)

Author SHA1 Message Date
Giel van Schijndel 47e7107aea Remove `systemPoints` from the code as it's never used.
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
2008-07-09 19:07:20 +00:00
Giel van Schijndel 0d997d617f Remove `hitPoints` from the code as it's never used.
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
2008-07-09 19:02:19 +00:00
Giel van Schijndel c6c5c981e6 Remove all TECH_LEVEL related cruft from the code as it's read 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@5453 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-09 18:28:37 +00:00
Per Inge Mathisen ba1df9e976 Fix bug #11979: Distorted terrain tiles after savegame r5399, caused by r5399.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5429 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-08 19:20:00 +00:00
Dennis Schridde f77542e2f8 Move config dir on Windows back to My Documents
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5427 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-08 17:46:45 +00:00
Per Inge Mathisen 9bc09663f0 Prettify debug output from rebuildSearchPath
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5421 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-08 13:01:09 +00:00
Freddie Witherden dd86c02f97 Make it possible to translate Video Options
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5412 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-07 15:36:55 +00:00
Giel van Schijndel c135ae175f * ASSERT that VTOL weapon droids have more than zero weapons
* 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
2008-07-07 13:11:27 +00:00
Giel van Schijndel 01108419db Did I say vtolHappy was somewhat error prone?
* 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
2008-07-07 12:58:18 +00:00
Giel van Schijndel 81c8aa657c Further cleanup/refactor vtolHappy:
* 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
2008-07-07 12:51:57 +00:00
Giel van Schijndel 316eae3a37 Improve readability/maintainability of function vtolHappy by using an array of bools instead of abusing a bitmask
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5408 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-07 12:47:04 +00:00
Giel van Schijndel 336656a0a8 Fix a bug introduced in r5406:
* 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
2008-07-07 12:44:00 +00:00
Giel van Schijndel 9c501e4641 vtolHappy: move the body-health check outside of the weapon check
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5406 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-07 12:31:06 +00:00
Giel van Schijndel 7db47c827e vtolHappy (what IDIOT wrote this btw??): only construct a bitmask once to increase readability/maintainability
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5405 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-07 12:21:26 +00:00
Giel van Schijndel e8c9f8a0ec Rename function vtolDroid to isVtolDroid:
* 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
2008-07-07 10:15:00 +00:00
Giel van Schijndel 1a5277de1d Proper constness: make vtolDroid and vtolHappy take their DROID* parameter as const
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5403 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-07 09:38:55 +00:00
Dennis Schridde 302a557478 Rename "raw" Makefiles to "win32" Makefiles
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5402 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-06 14:29:04 +00:00
Dennis Schridde ec5aeaf3c7 Make "SCRIPT" release function just indirectly point to scriptFreeCode, so the function types are strictly compatible.
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
2008-07-06 14:02:46 +00:00
Dennis Schridde 547ec7d49e TILE_NOTBLOCKING -> BITS_NOTBLOCKING, and store it in tileInfoBits instead of texture
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5399 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-06 13:57:03 +00:00
Giel van Schijndel 409bafbdf5 Turn the assert()s in the CHECK_STRUCTURE macro into ASSERTs so that we can see *which* assert failed
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5395 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-06 11:28:01 +00:00
Giel van Schijndel 693c8292ff Provide a more useful error message than "Weirdy action on keymap processing".
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
2008-07-03 14:57:18 +00:00
Dennis Schridde 45b8413abf Improve readability of renderFeature by returning early, adding some comments, etc
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5350 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-30 17:07:41 +00:00
Dennis Schridde 45f23a4926 Merge commit 'HEAD@{3}'
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5347 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-28 22:32:44 +00:00
Per Inge Mathisen aed2a94cd0 Move two vars into more local scope, and improve two asserts, then add a
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
2008-06-28 19:44:23 +00:00
Per Inge Mathisen 5ea6c60eee Do not initialize music sound system when --nosound option given.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5343 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-28 15:32:06 +00:00
Per Inge Mathisen a8dc963d37 Backport from path branch: Fix sMove->DestinationX|Y to use world coordinates, as they should be.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5342 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-28 15:25:58 +00:00
Dennis Schridde 050ec39c11 Use the (also new in this commit) relative variants of the directories almost everywhere.
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
2008-06-24 23:41:52 +00:00
Dennis Schridde fd2bfb0e0f Prepare for another fix for parts of bug #11883: Issues with the improved raw Makefiles
- Rename Makefile.raw to lowercase


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5321 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-24 22:48:45 +00:00
Dennis Schridde 73b35ab8d6 Rename top_srcdir/top_builddir to abs_top_srcdir/abs_top_builddir, to make this more obvious.
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
2008-06-24 20:19:54 +00:00
Giel van Schijndel 21a883121a * Add an ASSERT to trap a corner case which I don't think ever occurs.
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
2008-06-23 21:16:23 +00:00
Giel van Schijndel 276e201c01 * Get rid of "delayed return" in vtolHappy; just return false as soon as we've determined a VTOL isn't happy
* Use return (val == expected); instead of if (val == expected) return true; else return false;


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5313 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-23 21:15:58 +00:00
Per Inge Mathisen 826208f675 Backport nearest fix from pathfinding branch.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5310 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-23 18:00:37 +00:00
Dennis Schridde 9bd8b24921 Boost raw Makefiles
- 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
2008-06-23 13:54:47 +00:00
Dennis Schridde b16387ada8 Minor cleanup to minimise patch #686
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5298 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-22 17:39:11 +00:00
Dennis Schridde 9fffb2817a 0 -> '\0' to check the emptyness of a char[]
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5297 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-22 17:39:00 +00:00
Giel van Schijndel 76192b6534 * Make the level parser state enum a typedef (LEVELPARSER_STATE)
* 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
2008-06-21 17:32:03 +00:00
Per Inge Mathisen a1c47bccf8 patch #1075: Simplify playlist code. Thanks to Giel for patch review.
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
2008-06-21 15:40:56 +00:00
Dennis Schridde 4f77bdc8e6 Fix: warning: 'static' is not at beginning of declaration
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5280 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-20 14:04:10 +00:00
Dennis Schridde 7534eb48ac Add hack-note on usage of Vector3uw
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5278 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-20 08:51:50 +00:00
Dennis Schridde d3ad12ff6f Cleanup visibleObject & Co, and use new data ptr to transfer data to callback.
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
2008-06-18 22:23:47 +00:00
Dennis Schridde bd65c4255f Fix bug #11828: Raycast visibility now too far
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
2008-06-18 22:23:06 +00:00
Dennis Schridde 496d6592b5 Style cleanups, fix typos, make follow-up bugfix patch smaller
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5270 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-18 22:22:26 +00:00
Dennis Schridde bdf986c0e5 Seperate and reorder functions for easier rebasing of Per's threaded pathfinding
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5268 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-18 20:44:48 +00:00
Per Inge Mathisen 0655255ceb patch #969: Rewritten minimap code. This changes the radar window, so that
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
2008-06-18 18:35:25 +00:00
Per Inge Mathisen 6a595d9f85 Correct signedness of dot product in lighting calculation. Fixes lighting
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
2008-06-16 15:09:08 +00:00
Dennis Schridde 61f2e0ef21 Fix MSVC/noC99 compile errors and a potential segfault in visibleObject()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5253 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-14 11:22:37 +00:00
Giel van Schijndel 66b56d1c87 Use a pun on the whole Shakespear quote (original is: "By the pricking of my thumbs, something wicked this way comes."): "By the picking of these code-bombs, something wicked this way comes."
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5251 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-13 12:22:41 +00:00
Dennis Schridde d24d632e62 Simplify raycasting by making it vector based (3D vectors instead of 2D values to make it future proof to my next attack)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5250 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-12 20:11:50 +00:00
Dennis Schridde 3e8fa065b8 Minor cleanup and dont use globals for callbacks in raycast.c anymore
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5249 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-12 20:11:42 +00:00
Dennis Schridde 74d6424fdc Remove unnecessary inclusion of raycast.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5248 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-12 20:11:36 +00:00
Dennis Schridde e56b1580cc Cleanup raycasting
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
2008-06-12 12:20:20 +00:00
Dennis Schridde b8dd902636 Use more Vector_New
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5224 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-06 22:39:43 +00:00
Dennis Schridde a3ff407679 Rename VectorXY_Set to VectorXY_New and make it conform to API of the other vector functions
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5223 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-06 22:21:18 +00:00
Per Inge Mathisen 402a93cbd4 Fix bug #11733: Textures missing on first beta away mission
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5214 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-04 20:41:16 +00:00
Dennis Schridde 29d54a0956 Fix order to silence warning
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5207 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-01 01:05:26 +00:00
Dennis Schridde 2a934b06ce Indention fix and test the stats pointer, too.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5205 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-31 09:42:54 +00:00
Giel van Schijndel 685b5f3338 Prefetch the column numbers for the WEAPON_STATS only once
* Changes O(n * m * l) to O(n + m * l) behaviour


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5204 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-29 10:18:31 +00:00
Giel van Schijndel 747f158b45 Abort (i.e. return false) when failing to find the column's numbers by looking them up using their names
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5203 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-29 10:18:23 +00:00
Giel van Schijndel f7df0848ec * Fetch the column numbers by column name only once for the BASE_STATS and COMP_BASE_STATS parts of every SQL query (rather than once for every result row from a query)
* 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
2008-05-29 10:18:18 +00:00
Giel van Schijndel 91fc8a3b53 * Change colours for some of the status bars in the mission "completion score screen" to be more "vivid"
* 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
2008-05-28 22:08:49 +00:00
Giel van Schijndel 388c2f2128 Use ARRAY_SIZE to determine the length of the cheat-code list rather than a NULL pointer at the end of the list (as a form of NUL-termination)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5200 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-28 22:08:34 +00:00
Giel van Schijndel 40831ddb22 * When loading from the SQLite database rely on the column's names rather than on their number/order of appearance
* 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
2008-05-28 20:57:53 +00:00
Giel van Schijndel 1d739ce56b * Pass the table name as well from the .wrf resource file
* "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
2008-05-25 19:38:59 +00:00
Giel van Schijndel 452c167e9a * Add a new resource loading function type: RES_TABLELOAD
* 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
2008-05-25 19:38:53 +00:00
Giel van Schijndel 957889d4b9 * Make the load.*StatsFromDB functions load directly from a database (i.e. they don't need to open themself anymore)
* 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
2008-05-25 19:38:38 +00:00
Giel van Schijndel d193dce6f9 * Add a new resource type (for use with .wrf files): DBSENSOR which is similar to SSENSOR, with as difference that instead of a CSV file it specifies an SQLite database file to load from
* 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
2008-05-25 15:41:04 +00:00
Giel van Schijndel ce7928738f * Add a new resource type (for use with .wrf files): DBECM which is similar to SECM, with as difference that instead of a CSV file it specifies an SQLite database file to load from
* 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
2008-05-25 14:58:03 +00:00
Per Inge Mathisen d6f0f0da2f Use the same test (NDEBUG vs !DEBUG) in droiddef.h and droid.c for droid debug info.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5177 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-25 14:52:15 +00:00
Giel van Schijndel 855ec725d4 Use sstrcpy|sstrcat instead of strlcpy|strlcat for manipulation of statically sized strings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5176 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-25 13:46:49 +00:00
Giel van Schijndel 030d5b455b Use sstrcpy|sstrcat instead of strlcpy|strlcat for manipulation of statically sized strings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5173 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-25 11:36:20 +00:00
Giel van Schijndel 6a5ee556f6 Revert r4830:
* 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
2008-05-24 12:20:23 +00:00
Dennis Schridde ee4b321199 Largely simplified proj_InFlightIndirect.
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
2008-05-24 09:54:42 +00:00
Dennis Schridde 8918fc2788 Comply to Per's codingstyle: Less spaces for more readability!
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5161 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-24 09:54:33 +00:00
Dennis Schridde 1b1aa8f6a0 Improved structure, better layout and more comments for proj_InFlightDirect
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5160 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-24 09:54:23 +00:00
Dennis Schridde 85ab4e02e9 Move base files from data/ into data/base/ (and stuff from warzone.wz to base.wz respecitively).
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
2008-05-23 21:42:44 +00:00
Dennis Schridde 0d61fb663f Use direct initialisation, since this is easier here.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5151 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-23 11:03:03 +00:00
Per Inge Mathisen c95da57404 Remove unused WATER_ALPHA_LEVEL define. Alpha channel for water is defined in the tiles.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5149 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-22 20:22:48 +00:00
Per Inge Mathisen 05ef2e8638 Ugly workaround to fix nearest path calculations.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5145 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-20 20:20:55 +00:00
Per Inge Mathisen addd9a8e6a Remove unused code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5138 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-18 13:53:43 +00:00
Roman C 775668cad3 Don't manually free() data in the Bison grammar file, since it will be freed by YYABORT anyway. This fixes heap corruption during --selftest.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5137 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-18 12:29:22 +00:00
Per Inge Mathisen d6d6a9919e Commit API only from patch #907: Make texture coordinates into static array.
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
2008-05-17 21:48:23 +00:00
Per Inge Mathisen f6f142fa29 Add more error checking in A* code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5132 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-17 17:48:32 +00:00
Giel van Schijndel 0118573321 Work around Flex 2.5.33 implicitly defining yyget_extra() (rather than forward declaring it)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5130 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-17 10:49:33 +00:00
Dennis Schridde 258c843c44 Calculate muzzle locations as float-vector, for convenience (and because IMDs store info as float anyway).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5121 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-15 00:19:40 +00:00
Dennis Schridde d49d1144e0 r5113 was buggy
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5119 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-14 21:16:05 +00:00
Dennis Schridde 7744c514b5 Link to explanation of yaw/pitch/roll
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5117 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-14 21:15:50 +00:00
Dennis Schridde e2fa380597 Fix up what I think are wrong comments. The axes should be different.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5116 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-14 20:08:56 +00:00
Dennis Schridde 65553e8eb3 Mistake... I removed CHECK_PROJ_ABOVE_GROUND but forgot one user.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5115 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-14 19:04:42 +00:00
Dennis Schridde cb3d71029f We already have doubles, skip casting
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5114 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-14 19:04:34 +00:00
Dennis Schridde f9a57820b0 Move asserts to front
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5113 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-14 18:31:30 +00:00
Dennis Schridde 81636fa9d8 MSVC was crying
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5112 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-14 18:23:20 +00:00
Dennis Schridde 4197d2fc99 Prefer local variables over ones behind pointers
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5111 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-14 17:24:59 +00:00
Dennis Schridde fd577efb39 Move penetration code fragments from SendProjectile to Inflight*Func
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5110 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-14 17:24:51 +00:00
Dennis Schridde 851a930f98 Luxury++: Vector based worldOnMap() variants
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5109 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-14 17:24:35 +00:00
Dennis Schridde d733b20f49 This patch adds a --host option (to compliment the --join option) to
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
2008-05-14 11:03:33 +00:00
Dennis Schridde 2ded222cfd Simplify proj_InFlightDirectFunc() and make it more readable.
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
2008-05-13 23:32:23 +00:00
Dennis Schridde 202ebc32fb Step one towards vector based projectiles
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5106 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-13 23:32:07 +00:00
Dennis Schridde 974b5aacaa Minor documentation fixes:
- Comment on WSC_COUNTER
- Indention


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5105 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-13 23:19:20 +00:00
Giel van Schijndel d53aa02117 * Use the lexer_input framework instead of a custom YY_INPUT implementation for audp_lexer.l
* 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
2008-05-12 20:29:13 +00:00
Giel van Schijndel 787d3ad581 Call fflush(stdout) after fprintf(stdout, ... in parsetest.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5088 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-12 19:09:19 +00:00
Per Inge Mathisen 1819c503c6 Make difficulty work when you start the campaign with the --game parameter.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5076 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-12 17:50:10 +00:00
Per Inge Mathisen 489bdb4dd2 Make sure network mode is turned off before entering campaign mode.
Fixes difficulty settings.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5067 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-12 13:10:26 +00:00
Giel van Schijndel 9640d3b0a6 * Make sure to set psPrev to NULL at the start of the deletion loop
* Also don't dereference it when it's NULL


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5060 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-12 12:33:38 +00:00
Per Inge Mathisen 6b0d121d83 Remove debug log call that shouldn't be there
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5058 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 22:32:21 +00:00
Per Inge Mathisen 92ceea0131 Forward port various minimal-impact stuff from tagfile load patch to reduce patch size.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5053 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 20:51:41 +00:00
Dennis Schridde c67a3ef1be More comments on previous patch, which was by Buginator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5051 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 19:53:27 +00:00
Dennis Schridde 25c53e1c48 commandline argument --join <host> to join into a lobby directly from the commandline ((needs ChangeLog addition!))
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5050 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 19:09:29 +00:00
Per Inge Mathisen 22d10c80aa Allow VTOL to uncover fog of war and land-move to unseen areas in distance fog mode.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5048 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 15:20:34 +00:00
Per Inge Mathisen 91727f270b objTrace() no longer requires a debug part parameter, and always outputs the ID
of the traced droid.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5047 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 14:58:20 +00:00
Per Inge Mathisen ce1ebb31cb Remove some dead code, and cosmetic cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5046 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 13:45:37 +00:00
Per Inge Mathisen 1fc9453cf5 Cosmetic cleanup to order.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5045 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 12:42:42 +00:00
Per Inge Mathisen 85848067f4 Add more informative assert to solve bug #11659: crash on first level of
campaign reported by Paul Wise.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5042 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 11:04:38 +00:00
Per Inge Mathisen 7d0aae2e0e Add more logging, used to find previous bugfix.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5039 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 10:50:15 +00:00
Per Inge Mathisen 21fa30ec47 Fix bug #11641: Bad textures after third load of saved game, by making sure
we unload all level data when loading savegames.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5037 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 10:46:38 +00:00
Roman C 14152fd19c Add an assert to a scripting function.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5033 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 10:19:04 +00:00
Per Inge Mathisen 8e1ad51337 Improve logging
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5031 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-11 09:21:47 +00:00
Giel van Schijndel 6f507abe43 Flex 2.5.4 (used on Windows) doesn't provide yyget_extra(), yyset_extra(), yyget_text() and yyget_lineno(), so work around this with a conditionally compiled section
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5030 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 22:12:51 +00:00
Giel van Schijndel e360135367 Don't use %option bison-brigde in scriptvals_lexer.l as Flex 2.5.4 (used on Windows) doesn't support this option
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5027 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 19:35:44 +00:00
Giel van Schijndel 53f1a78b21 Don't use %option header-file in scriptvals_lexer.l as Flex 2.5.4 (used on Windows) doesn't support this option
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5026 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 18:52:07 +00:00
Giel van Schijndel 0c07334905 Update scriptvals.h for r5024
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5025 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 18:43:49 +00:00
Giel van Schijndel 3fae4ebae3 Make scriptvals_lexer.l non-reentrant as Flex 2.5.4 (used on Windows) doesn't support %option reentrant
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5024 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 18:42:59 +00:00
Giel van Schijndel 8049b92179 Don't use %option header-file in level_lexer.l as Flex 2.5.4 (used on Windows) doesn't support this option
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5023 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 18:31:17 +00:00
Per Inge Mathisen a5628c83d9 Fix bug #11669: "[widgGetNumTabMajor] couldn't find tabbed form from id" after completing any research
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5021 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 16:54:38 +00:00
Giel van Schijndel f35270ab17 * Use lexer_input.[ch] instead of our own custom YY_INPUT implementation for level_lexer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5017 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 15:08:32 +00:00
Giel van Schijndel 4b1ecee02b * Remove the check whether we're in a comment at the end of file from level_lexer and scriptvals_lexer
* Don't use yywrap (%option noyywrap)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5016 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-10 14:43:23 +00:00
Roman C 3d2dc99003 Scripting:
-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
2008-05-10 13:20:23 +00:00
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
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
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