Commit Graph

1057 Commits (03c620620bdecdc1e7878fbce0e06dff66865159)

Author SHA1 Message Date
Giel van Schijndel a58ba2cffc Patch by Gerard Krol (as in message on <45D5D583.4000803@student.tudelft.nl> the dev mailing list)
* replace an awfully large amount of strange pointer usage (as struct members) with temporaries

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1122 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-16 19:44:23 +00:00
Giel van Schijndel d34898df16 * fix to deal with command line inconsistencies between the Windows and GNU/Linux version of NSIS' makensis utility
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1119 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-16 14:48:34 +00:00
Dennis Schridde 8a70df4064 Use some more advanced Automake techniques like noinst_HEADERS. Changes partly autogenerated by KDevelop, so this should be compatible with Automake 1.6.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1118 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-16 14:36:03 +00:00
Dennis Schridde 1f468f9c46 Make the NSIS installer also contain ChangeLog and AUTHORS
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1116 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-15 15:42:47 +00:00
Dennis Schridde d80e06e2cd Port of r1114 (buildsystem/installation improvements)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1115 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-15 15:36:25 +00:00
Dennis Schridde c557889c92 Without -g no debug info at all is placed in the exe...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1113 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-15 12:37:59 +00:00
Roman C cd70a98588 - fixed compilation of script functions consisting of a single return statement
- minor cleanups

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1112 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-14 22:12:48 +00:00
Roman C ac33b9f5dd Fixed compilation on MSVC.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1111 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-14 22:08:53 +00:00
Giel van Schijndel 35de2b63f1 * get rid of lib/ivis_common/geo.h (only had one line, which effectively made it a symlink to another include file)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1110 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-14 20:13:31 +00:00
Giel van Schijndel f2e375f485 * Fix unterminated string
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1109 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-14 19:11:56 +00:00
Giel van Schijndel 77df8e4687 Patch by Gerard Krol (as in message <45D350C6.4040907@student.tudelft.nl> on the dev mailing list)
Comment on it as by Gerard:
 * This patch prevents a segfault when designing a droid on amd64.
   Reproduce: on amd64, go to the droid design screen and design a construction droid. Then hover your mouse over another system, like sensor or command. 

Comment by me:
 * Seems to also clean out some code (assigning individual values of a struct rather than copying the entire struct with memcpy)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1108 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-14 18:46:07 +00:00
Roman C da3f1e25f8 - removed some ASSERSs doubling debug() error output
- when script runtime error occurs wz first outputs error information and then asserts, not vice versa
- printCallStack() script function will output script call stack to standard output

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1107 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-14 18:29:26 +00:00
Dennis Schridde db78168f8a Don't enforce -g0 and -O2 and while we are at it remove the useless -g2, which is the default level of debugging.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1104 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-14 17:50:12 +00:00
Dennis Schridde f3b8fec4ce Update grim-mod descriptions as proposed by Christian Ohm.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1101 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-14 16:23:24 +00:00
Ari Johnson 05bd724b1c Fixed script state saving and loading on big-endian machines
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1100 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-14 03:39:17 +00:00
Dennis Schridde 7046437cf1 Fix building data/
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1099 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-13 22:01:05 +00:00
Roman C 1ac2942948 Make use of the script type compatibility table during compilation of vlo and slo files.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1098 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-12 15:46:54 +00:00
Giel van Schijndel 0fcfaebdd0 fix linker order:
* PHYSFS sometimes depends on libZ (e.g. when PHYSFS_close is called on an opened file, which it now probably never is since WZ links fine with wrong linker order)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1091 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-11 13:28:44 +00:00
Roman C f4c4c48dd2 Patch by Gerard Krol:
replaces AND/OR macros with &&/||

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1089 4a71c877-e1ca-e34f-864e-861f7616d084
2007-02-10 16:39:39 +00:00
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