Commit Graph

2010 Commits (870a53664649d4cd826a2446259a3078d92bf1df)

Author SHA1 Message Date
Giel van Schijndel cbb398882d * First create $(DESTDIR)$(pkgdatadir)/mods/global before installing grim.wz in it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2390 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 20:40:11 +00:00
Dennis Schridde 8334d13138 Prevent a symbol conflict of our DATADIR with that from /usr/mingw32/mingw/include/objidl.h via lean-and-mean.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2389 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 20:12:46 +00:00
Giel van Schijndel 8faa60aa63 * Update Grim's GFX mod for r2300
* Rewritten texture loader: terrain texture tiles are now in separate files rather than concatenated in one large image file
 * Convert tileset to loose files

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2388 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 17:59:15 +00:00
Giel van Schijndel 0fcde559bc * Update Grim's GFX mod for r2124:
* strings.txt removal

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2387 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 17:41:21 +00:00
Giel van Schijndel 33aea77e60 * Add Grim's GFX mod (this version would work cleanly with r2123; I'll update it soon after this commit)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2386 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 17:38:28 +00:00
Giel van Schijndel 0ba8c36b31 * Fix building of mp.wz by the raw Makefiles
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2385 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 17:21:21 +00:00
Per Inge Mathisen 924a22c3cb No longer make unnecessary assumptions about leading zeroes in tile filename suffixes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2384 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 13:45:48 +00:00
Giel van Schijndel 3e8cb6ba4c * Add Python script for the conversion of old-style one-texturepage tilesets to mipmapped tilesets
By Kevin Gillette <kage>

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2383 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 10:24:52 +00:00
Giel van Schijndel e559915d83 * Change an assert(FALSE) into a more descriptively styled: !"text string"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2382 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 09:49:44 +00:00
Giel van Schijndel 551aa55cb9 * Use SDL_EnableKeyRepeat to enable the repeation of key press events (this enables you to press your 'A' key once and get multiple 'A's if your in a textbox)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2380 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 09:30:50 +00:00
Giel van Schijndel 29c1229322 * Prevent a warning about "dereferencing type-punned pointer will break strict-aliasing rules" by casting a &float through a void* before casting it to uint32_t*
* Add an explanation about floats (that they're basically the same as 32bit integers as far as endianness conversions are concerned)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2379 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 09:09:30 +00:00
Giel van Schijndel 1ee0356036 * Adapt the writeFXData and readFXData functions to use the PHYSFS big endian swapping write and read functions
* Don't write directly from the memory of the EFFECTs (since this memory doesn't always have the same size on 32vs64bit systems)
 * Guarantee to always write the IMD's hash number as if it's a uint32_t (this fixes 64bit compatibility of these functions)
 * Add functions openLoadFile and openSaveFile which perform the file opening for loadFile2 and saveFile and now readFXData and writeFXData as well

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2378 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-15 21:26:05 +00:00
Giel van Schijndel 707e156265 * Fix warning about "null argument where non-null required"
* Turn macro ALLOC_VARIDENTDECL partially into a static inline function
 * Remove -Wno-nonnull since this warning shouldn't appear anymore now
Patch by pseudonym404 with some changes by me ( http://forums.wz2100.net/index.php?topic=148.msg7723#msg7723 )

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2377 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-14 19:24:29 +00:00
Giel van Schijndel ab9f78760b * Fix a warning about unused variable "kills"
Patch by pseudonym404 ( http://forums.wz2100.net/index.php?topic=148.msg7691#msg7691 )

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2376 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-13 23:44:13 +00:00
Roman C 65866c3012 Increase number of allowed texture pages from 64 to 128 for now.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2375 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-13 10:48:32 +00:00
Roman C 230e56878a Turn more ASSERTs inside scripting functions into debug(LOG_ERROR, ...)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2374 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-13 10:45:36 +00:00
Roman C 669bb13506 - added getDroidKills() scripting function.
- fixed setDroidKills() scripting function to cope with changes to the way kills are stored internally (kills are in % now).

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2373 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-13 10:40:32 +00:00
Roman C 04dc906312 Make the game display droid rank, when clicking on a droid in debug mode (useful when debugging AI).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2372 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-13 10:37:16 +00:00
Roman C c1f1288f53 Turn some ASSERTs into debug(LOG_ERROR, ... )
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2371 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-13 10:35:18 +00:00
Dennis Schridde 0cf8a9af36 Update dbghelp.h to Wine 0.9.43.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2370 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-12 01:03:38 +00:00
Per Inge Mathisen 8d0c71e472 Fix bug where we would oppose the worth of attacking a target with the worth of
attacking ourselves, since when auto-repair is researched, we will have ourselves
as a repair target. The result was that droids on guard or idle would not attack
at all. This fixes bug #9665. Also remove unused function orderGroupHealthCheck().


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2369 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-11 21:18:38 +00:00
Per Inge Mathisen 86acf8940f This patch fixes an incorrect filename in po/Makefile.in.in. It should be warzone2100.pot instead of warzone.pot.
Patch by Ken Rushia.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2368 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-11 16:25:05 +00:00
Per Inge Mathisen 3adaa181b2 Add new function isDead(BASE_OBJECT*) which checks if an object is dead or in
a transport list, and use it where applicable. This fixes bug #9720, an asserts
when selecting a droid inside a transport because we think it is dead.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2367 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-11 09:31:16 +00:00
Giel van Schijndel 5285f0a096 * Cleanup CLimitsDialog's code to make it easier to port it to wxWidgets
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2366 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-09 14:18:57 +00:00
Giel van Schijndel 5814fc39c7 * Attempt to preserve history a bit
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2364 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 20:43:33 +00:00
Giel van Schijndel ba7d1d5078 * move class CUndoRedo from bteditdoc.cpp to new file undoredo.cpp
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2363 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 20:39:07 +00:00
Giel van Schijndel 243bc7ddb8 * Remove unused files model.cpp/h and seedfill.cpp
* remove #include "snapprefs.h" directive
 * remove non-existent file d3dwrap.h from project file

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2362 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 20:10:38 +00:00
Giel van Schijndel 0397a75255 * Remove unused window CSnapPrefs or IDD_OBJECTPREFS
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2361 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 19:45:37 +00:00
Giel van Schijndel 9d148e7f8b * Remove unused window CInfoDialog or IDD_DEBUGINFO
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2360 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 19:37:17 +00:00
Giel van Schijndel b95b607976 * Revert unintentional changes to Code::Blocks projectfile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2359 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 18:52:49 +00:00
Giel van Schijndel 74e64738fa * Add network primitives by Freddie Witherden <EvilGuru>
* Modify them slighly to use get/set functions for the package direction (instead of a global accessable to all files which forward declare it)
 * Add a NETfloat to the set of primitives
 * Modify NETstring to use strnlen1 instead of strnlen which is a GNU extension to the C library (strnlen1 has been copied from gettext 0.16.1 which is GPLv2+)
NB: rerun your buildsystems
NB2: Xcode requires an update

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2358 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 18:50:28 +00:00
Roman C 4213087057 Make commanders a more valuable target, since commanders are more useful now.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2357 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 11:49:13 +00:00
Giel van Schijndel 0d901ea836 * Merge fixes for bug #9694 and bug #9704 which where fixed in r2349 and r2355 respectively from the 2.0 branch into trunk
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2356 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 11:23:21 +00:00
Per Inge Mathisen 7e3837a2b5 Improve Norwegian translation somewhat
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2353 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-07 18:18:10 +00:00
Per Inge Mathisen 004786ea50 Improve dependency and error checking in autotool build scripts for translations.
Requested by krushia.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2352 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-07 18:13:26 +00:00
Roman C 8425ac9af5 Updated ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2351 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-07 15:13:47 +00:00
Roman C 3704de1f71 Balance:
-increased reload time of EMP Cannon from 5 to 8 seconds
-EMP Cannon will now disable units in its splash radius of 2x2 tiles, with probability of 50%

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2350 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-07 15:10:43 +00:00
Giel van Schijndel 80e93f2ca4 remove src/csnap.c from POTFILES.in
Thanks to Ken Rushia <krushia> for spotting this; This closes patch #792

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2348 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-07 09:07:46 +00:00
Giel van Schijndel 609d953a63 * Remove forward declarations for undefined functions iV_CreateFont, pie_StartTextExtents and pie_FillTextExtents
* Remove unused functions pie_SetFormattedTextFlags and pie_GetFormattedTextFlags
 * Move constants PIE_TEXT_WHITE_COLOUR, PIE_TEXT_LIGHTBLUE_COLOUR and PIE_TEXT_DARKBLUE_COLOUR from header file to implementation file
 * Remove global var FFlags which only ever had one value (FTEXT_SKIP_TRAILING_SPACES)
 * Remove global var ExtentsMode which only ever had one value (EXTENTS_USEMAXWIDTH) and remove all if-statements which never matched (remove the conditional part from the parts that always matched)
 * Remove #ifdef _TESTBED code since _TESTBED is never defined (not in commented out code either)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2346 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-06 11:22:31 +00:00
Giel van Schijndel 76057072e0 * remove function stringLen and replace all instances where it was used with strlen (can't see why anyone would want a custom string length function there in the first place)
* make strresStoreString const correct ("char*" -> "const char*")

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2345 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-05 12:06:56 +00:00
Giel van Schijndel fc8ab2c14e * Remove CursorSnap code; it was this code that was responsible for "snapping" the mouse cursor when switching menus
* This removes csnap.[ch] (removed from automake/autoconf, Code::Blocks, MSVC)
Patch #789 by Ken Rushia (with some minor additions & changes by me)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2344 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-05 11:42:59 +00:00
Per Inge Mathisen 0c942e2413 Do not show debug info for selected objects in debug builds unless debug mode
enabled in the game. Add extra info to selected items. Modify what info strings
are to be translated - in general, do not mark debug strings for translation.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2343 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-03 23:20:19 +00:00
Per Inge Mathisen e8bbf9113c Weed out some done or no longer relevant items from the TODO list.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2342 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-03 18:30:39 +00:00
Per Inge Mathisen 618e1b82ed Cleanup. Remove yet another ton of unused code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2341 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-03 18:12:13 +00:00
Per Inge Mathisen 4fe1646f26 Fix bad macro names.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2340 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-03 18:01:52 +00:00
Per Inge Mathisen 33e7c70cc4 Cleanup. Remove another ton of unused code. Fix error message which is not an error.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2339 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-03 17:39:04 +00:00
Per Inge Mathisen 0266477bd9 Add new debug category: gui
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2338 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-03 16:24:17 +00:00
Roman C a3712c2361 Hit/miss code:
- make attacker experience boost and target experience penalty modifiers even by making them percentage of the same base accuracy value, without modifiers applied
- cap accuracy to 0-100%

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2337 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-03 15:32:41 +00:00
Per Inge Mathisen 8a7d09141c Hopefully fix a valgrind warning
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2336 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-03 15:22:45 +00:00
Roman C 496d2b1851 Rewrote hit/miss chance calculation to use a single variable for all modifiers:
- removed duplicate code
- added some defines instead of 'magic' numbers

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2335 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-03 14:51:54 +00:00