Commit Graph

688 Commits (f13a111a5c7d7df50fe4752d7bc06f9985e664c5)

Author SHA1 Message Date
Roman C f13a111a5c Scripting engine update:
-added script call stack trace output on script runtime error
-added STRUCTURE getTileStructure(INT tileX, INT tileY) script function to get a structure on a certain map position
-fixed two stackPopParams() calls with too many actual parameters

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1087 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-10 15:23:47 +00:00
Dennis Schridde f105fad779 Improved backdrop-loading and don't delete a texture when it just needs to be replaced.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1085 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-10 14:34:12 +00:00
Giel van Schijndel 991b9ceb12 patch by Gerard as provided in message with ID <45CC4A2E.4060706@student.tudelft.nl>:
* fixes usage of negative array index

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1082 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-09 16:29:32 +00:00
Dennis Schridde 977b2ee558 - Hack in PNG backdrop loader
- Add 2 new backdrops from Terminator (http://wz2100.net/forum/index.php?topic=109.0)
- Remove unused pal parameter from pie_PNGLoadMem()


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1075 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-07 15:27:17 +00:00
Dennis Schridde a67ea65895 Some more "invalid" filenames.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1073 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-07 14:29:44 +00:00
Dennis Schridde 04359c9abc SDL_framerate is not part of Warzone 2100, not licensed under the GPL, but instead under the LGPL and even comes with it's own header.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1071 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-06 13:30:46 +00:00
Dennis Schridde b353ec4593 Swap TEXT and DESC for english grim-mod item.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1070 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-06 13:20:05 +00:00
Dennis Schridde 2b16cbd06b Port of r1066
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1067 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-05 14:32:31 +00:00
Dennis Schridde 033b17664b Move wrf file, too.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1065 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-05 12:59:18 +00:00
Dennis Schridde 70475bbd2f Finalize move
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1064 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-05 12:48:47 +00:00
Dennis Schridde 2f03fe911a Prepare move/merge from mp-patches
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1063 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-05 12:44:51 +00:00
Dennis Schridde ee337544f6 Fix buildsystem in src/, was creating wrong _parser.c files.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1061 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-05 10:46:24 +00:00
Giel van Schijndel bd15126db0 Added a directory to contain tools for Warzone 2100. (E.g. modelling/texturing stuff, some map editor maybe, etc.)
As per this discussion: http://wz2100.net/forum/index.php?topic=320.0

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1055 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-31 19:58:49 +00:00
Dennis Schridde 93476b8fe4 Fix ignorelib seperator and link to winmm and wsock32 for use with static libs.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1054 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-31 18:02:18 +00:00
Giel van Schijndel 7250eff5b6 * Remove yet another set of unused (or empty) functions
* Remove an unused, local, function-variable
 * Remove some file-global, static variables

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1051 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-29 23:17:46 +00:00
Giel van Schijndel 4def8b89ba Fix some compiler warnings:
* remove some unused functions

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1049 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-29 22:17:40 +00:00
Roman C 7557531b17 Call CALL_NEWDROID script callback only if newly built droid was successfully placed on map.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1048 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-29 20:26:10 +00:00
Ari Johnson 26158abb0c Endianized colors for vastly better big-endian version
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1047 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-29 05:42:26 +00:00
Ari Johnson 9f616f8f8c Fix to out-of-order statements in projectile.c to avoid crash
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1046 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-29 05:41:45 +00:00
Ari Johnson e964b6e6da Fix to viewing area display on minimap
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1045 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-29 05:04:28 +00:00
Giel van Schijndel 7007b82fdb Modification 8 by Watermelon's bugfix patch:
* Changed establishTargetHeight in projectile.c to use pIMD rather than displayImd for structures to fix some weird height problems(hopefully).
 * Giel: Slightly changed the patch's modifications to increase code readability

Refer: Message-ID: <ca0601900701240912n346a5243o998ae9c432ce0b9f@mail.gmail.com>

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1044 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-28 18:19:32 +00:00
Giel van Schijndel 2ff7b1acd5 Improved code readability by Dennis' advice.
* First reverted changes of r1042, then modified the r1041 version to work according to Watermelon's specifications.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1043 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-28 17:26:00 +00:00
Giel van Schijndel 05be814426 fixes disabling of utility droids' target updates
(according to Watermelon's comment in Message-ID: <ca0601900701280812hb171f24teec9907ff59af701@mail.gmail.com> )

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1042 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-28 16:28:45 +00:00
Giel van Schijndel c72ef97cd8 Modification 4 by Watermelon's bugfix patch:
* Fixed a bug which prevents the droids from removing 'died' targets for auxiliary weapons.
 * Giel: Slightly changed the patch's modifications to leave iteration entirely up to the for-loop

Refer: Message-ID: <ca0601900701240912n346a5243o998ae9c432ce0b9f@mail.gmail.com>

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1041 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-28 15:59:02 +00:00
Ari Johnson f347c62e6a Fixed two endianness issues in saving/loading games
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1040 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-27 03:28:08 +00:00
Dennis Schridde 53ee7bc2d5 Port r1038 from branches/2.0
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1039 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-26 16:27:46 +00:00
Dennis Schridde 952e060a60 Bring r1035 to trunk + reorder frontend images in .wrf
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1037 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-26 15:04:58 +00:00
Per Inge Mathisen be5ff91d08 Fixes a bug which prevents the droids from removing 'died' targets for auxiliary weapons.
Patch by Watermelon.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1034 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-24 20:08:15 +00:00
Per Inge Mathisen 3d6771a521 Unify the several different definitions of pi in the codebase. Now we use the
C macro M_PI (if available, or we will define it on our own in fractions.h).


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1033 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-24 19:42:20 +00:00
Roman C aa738f2a9e Setting skirmish difficulty slider to the far left (just before disabling AI) will completely disable skirmish gifts for this AI.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1032 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-22 16:23:05 +00:00
Roman C 4c3454e206 Fixed CALL_NEWDROID and CALL_STRUCTBUILT script callbacks.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1031 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-22 16:18:27 +00:00
Dennis Schridde a3ea02739b Don't forget data on Debian, either.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1027 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-21 19:33:31 +00:00
Dennis Schridde 31f3b2c67a Fix data Makefile.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1026 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-21 19:15:09 +00:00
Dennis Schridde bf26411158 Don't forget to ship the data with the AutoPackage.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1025 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-21 18:44:36 +00:00
Dennis Schridde 73121112c9 - Finally Win98 compatible again!
- We apparently missed a contributor in the AUTHORS file...


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1023 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-21 18:15:18 +00:00
Giel van Schijndel 731c145b75 removed alGetError() error-check because an al* error couldn't be legally generated at this stage since no al* calls are made yet
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1018 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-17 22:18:59 +00:00
Giel van Schijndel 5bcc7819ac git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1017 4a71c877-e1ca-e34f-864e-861f7616d084 2007-01-17 21:39:38 +00:00
Dennis Schridde 49ceba7503 Add GPL notices to all sourcecode files.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1014 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-15 20:09:25 +00:00
Dennis Schridde 537df742b2 Updated Authors
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1013 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-15 20:08:00 +00:00
Ari Johnson 6a8b7424c9 Fixed syntax error - missing semicolon on end of line
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1010 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-15 16:49:16 +00:00
Dennis Schridde 0f0da23e46 Raw Makefiles: Compatibility fix for make versions < 3.81
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1009 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-15 13:26:01 +00:00
Dennis Schridde 819277a878 Proper include fix.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1004 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-13 23:23:59 +00:00
Dennis Schridde 8636f63a4c Raw Makefiles: Forgotten support for mingw32 libaries
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1003 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-13 21:16:18 +00:00
Dennis Schridde 52f1b21e24 Raw Makefiles:
- Check for MAKENSIS if INSTALLER is set
- Seperate windows-support from mingw32-support


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1000 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-13 20:55:33 +00:00
Dennis Schridde adee432d8e - Set Gamma in systemInitialize instead of loadConfig
- Load config before grabbing commandline parameters and save them right afterwards


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@998 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-13 01:48:48 +00:00
Per Inge Mathisen 85767a6ae8 Remove the unused (unconfigurable) CD soundtrack code, since we now
anyway prepare to add our own, new music tracks to the game.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@997 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-10 23:00:04 +00:00
Per Inge Mathisen a0c67a74c1 While I am at it, remove some more dead code and set correct log flag.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@996 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-10 22:50:09 +00:00
Per Inge Mathisen 6856fab9de Fix autoconf build system that was broken in commit 994.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@995 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-10 22:38:55 +00:00
Giel van Schijndel c3276dcf59 last commit only emptied lib/sound/mixer_stub.c
fix that by deleting it now

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@994 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-10 21:56:50 +00:00
Giel van Schijndel 1591402b4c removed lib/sound/mixer_stub.c and all function calls to it (or more precisely the calls to its empty functions)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@993 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-10 21:55:39 +00:00