Commit Graph

974 Commits (2707ce0fd61152ae39bb51d269ec718d3d22fd1d)

Author SHA1 Message Date
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
Dennis Schridde 16d456837b Fix Win98-without-IE5-fallback.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@992 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-10 21:38:15 +00:00
Dennis Schridde 324a35d1d9 Compatibility fix for Win98 without IE5.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@987 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-10 00:36:16 +00:00
Dennis Schridde d8f790fd7d Additional includepaths-workaround for non-debug variant.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@986 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-09 23:11:36 +00:00
Dennis Schridde a43cf9bfb2 - Relative/Templated paths for MSVC
- Waf wscript


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@985 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-09 23:01:15 +00:00
Dennis Schridde f723a42e50 Proposed fix for non-MSVC buildsystems
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@984 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-09 22:07:58 +00:00
Dennis Schridde 711af01772 New MSVC project files with custom build rules to support automatic lexer/parser generation.
The include changes might break other buildsystem, I'll fix that when I am back on Linux.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@983 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-09 21:13:58 +00:00
Dennis Schridde 6118395dfc Stop confusion: COMPILER also removed from config.mk.tmpl
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@980 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-09 01:34:38 +00:00
Dennis Schridde 2e967ee264 More merging and Makefile improvements:
- Remove (wrong) double definition of main
- Make enabling/disabling of DATA and INSTALLER easier in raw Makefiles
- Remove COMPRESS and COMPILER from raw Makefiles
- MAKENSIS is no longer mandatory for raw Makefiles


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@979 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-09 01:28:01 +00:00
Dennis Schridde f28630f634 Forgotten change
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@978 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-08 23:48:12 +00:00
Dennis Schridde 027b868929 Change libraries for raw Makefiles again. This should now more closely represent the sdl-config.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@976 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-08 23:25:38 +00:00
Giel van Schijndel 340710edf8 workaround for bug #8198
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@975 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-08 22:35:43 +00:00
Giel van Schijndel 28d4e32d59 apply proper use of enums (i.e. not defining the current value to be the previous one +1)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@974 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-08 18:51:12 +00:00
Giel van Schijndel 38a3d8ee82 * cast some void*(*) variables to their respective types
* remove -fno-gnu-keywords from GCC because it seems to be only for C++/ObjectC (Doh!), and the variant for C (being -fno-asm) additionally disables inlines which we definitely don't want disabled
 * remove a large function which reserves memory without it ever being used *at*all* (from hci.*, mapdisplay.* and intelmap.c), also remove a function parameter from another function in mapdisplay.c, (it was this parameter that required the other functions to reserve memory)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@971 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-08 13:40:12 +00:00
Giel van Schijndel 9c79b6b109 ISO C 90 (or C-99 without GNU-extensions) compatibility fix:
* change all casts using the typeof() keyword to their respective typename
 * append a compiler flag for GCC (-fno-gnu-keywords) which disables GNU-specific keywords (typeof and asm only in case of C-99, inline as well if C-90 mode is used), to aid in code portability (i.e. among compilers)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@970 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-08 12:42:51 +00:00