Commit Graph

1829 Commits (2e38bd5746486fd3278645d1d6aa0129ef31a293)

Author SHA1 Message Date
Giel van Schijndel 2e38bd5746 * Fix German translation for NSIS installer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2409 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 19:04:24 +00:00
Giel van Schijndel bac61d9ee9 * Add NLS section to NSIS installer (installs compiled gettext message catalogs)
Note: the added German text in the NSIS installer might require looking over by someone who has more experience with the language

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2408 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 18:51:06 +00:00
Giel van Schijndel 436523e700 * Don't add data/locale to warzone.wz since gettext can't access these files through PhysFS but needs direct access to them (through stdio.h stuff)
* ./configure && make && make install (and the NSIS installer) will make sure that the gettext message catalogs are in a decent location

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2407 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 18:37:08 +00:00
Giel van Schijndel 8fbf62c1b2 * Get grim.wz from data/mods/global/grim.wz instead of data/grim.wz for the NSIS installers
* Fix data/Makefile.raw by moving make-target/make-rule $(SUBDIRS) below "all"

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2406 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 18:31:35 +00:00
Giel van Schijndel 94db796167 * Fix a typo in nettypes.c this should fix bug #9791
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2405 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 17:54:26 +00:00
Giel van Schijndel b360d380b2 * Move data/grim to data/mods/global/grim
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2404 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 17:42:17 +00:00
Giel van Schijndel e3db4b5e16 * Add gettext (>= 0.15) as build dependency for the Debian package
* the >= 0.15 part is because we depend on the "message context" feature only provided by >= 0.15


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2403 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 14:39:52 +00:00
Giel van Schijndel 7e3d161574 * Add BOOL NETfloat(float* fp) to nettypes.h so that it can actually be used
* Fix a spelling error in a comment in nettypes.c


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2402 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 14:02:17 +00:00
Giel van Schijndel 52bc608d17 * Fix MSVC compilation by assuming all platforms supported by MSVC provide IEEE754 floats
This fixes bug #9791

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2401 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 11:37:39 +00:00
Giel van Schijndel 7e383b4a92 * Improve Dutch translation
* Throw away a lot of autogenerated "translations" (where marked fuzzy) which where just crap
  * Add some new translations
  * Change some pre-existing translations

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2400 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 11:03:57 +00:00
Giel van Schijndel 0be2fe8351 * make -C po update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2399 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 10:11:19 +00:00
Giel van Schijndel 882503686c * Add Dutch translation to patching installer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2398 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 09:55:32 +00:00
Giel van Schijndel ea537fb736 * work around asWeaps[n] still being set for IDES_SYSTEM turrets when numWeaps == 0
* Stops segfaults when hovering over a different propulsion type button than currently selected for an existing non-weapons turret
 * Also stops system turrets being 'forgotten' when changing propulsion type on an existing design (effectively reverses the current behaviour of intCheckValidWeaponForProp considering all existing system turrets invalid for all propulsion types)
Patch by pseudonym404 ( http://forums.wz2100.net/index.php?topic=148.msg7761#msg7761 ), slightly changed by me to be compatible with the changes in r2396

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2397 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 09:51:44 +00:00
Giel van Schijndel 4d424e8ab1 * Use X[Y].m to access member variables of an array of structs rather than (X + Y)->m
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2396 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 09:45:42 +00:00
Giel van Schijndel 35d7b53eb8 * make -C po update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2395 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 23:03:56 +00:00
Giel van Schijndel e28c8c4606 * Add support for compiling with gettext to the raw Makefiles (note this _does_ require the latest devpkg)
* Add the ability to compile .mo catalog files from gettext .po files to the raw Makefiles (all catalog files are dumped into data/locale)
 * On Windows make gettext use the LOCALEDIR (as defined in makerules/config.mk) which is a subdirectory of the directory that contains Warzone 2100's executable as it's locale directory

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2394 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 22:50:05 +00:00
Giel van Schijndel 2231d34d23 * Don't use fprintf's formatting string stuff when you have the preprocessor to do it for you (compile-time is faster than runtime!)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2393 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 22:34:07 +00:00
Dennis Schridde b791c2353d Order...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2392 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 21:01:18 +00:00
Dennis Schridde f75edcb106 libdbghelp.a is now in devpkg-mingw32.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2391 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 20:59:49 +00:00
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