Commit Graph

816 Commits (354bf5255ec789aa08d1034aa19ec8513f9d712b)

Author SHA1 Message Date
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
Giel van Schijndel 68d435097e enabled some more code to compile with a C++ compiler without -fpermissive (i.e. there should be *less* compile-time errors now)
* moved several #defines to the enums where they belong
 * changed some datatypes on declaration
 * prepended casts to malloc calls (using typeof() style)
 * changed some (void*) casts to (void**) where required
 * removed several #defines and there instances and then replaced them with their corresponding values from an enum

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@969 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-07 23:50:30 +00:00
Roman C dc59e61b9e -fixed assert and debug message
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@968 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-07 20:15:07 +00:00
Roman C 3336e8717a AI update:
-AI can now request help using chat messages when in trouble.
-AI can recognize other players (Humans or AIs) asking for help and react accordingly by sending units to help ally - indicate position on the map with a beacon (Alt+H) and send a chat message requesting help.

Example:
"Help"
Addresses all players sender communicates with.

Certain AIs can be addressed directly:
"Black, Red and SantaClaus help me!!!"

-"i'm fine" or similar forms understood by lexical parser will notify AIs to send its units back.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@967 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-07 20:11:50 +00:00
Roman C ddbc2564b5 Lexical parser update:
-Fixed endless recursion in one of the lexical parser rules.
-Disabled log warnings when no meaningful information could be extracted form a player chat message.
-Small update to the lexical chat parser rules.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@966 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-07 19:44:04 +00:00
Roman C 80a5a97366 Disabled ability to click on help blips - this seem to cause ugly GFX artefacts sometimes, text could not be manually set by players anyway.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@965 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-07 19:36:58 +00:00
Dennis Schridde f1ad4d83c9 - Expand DISP_HEIGTH/DISP_WIDTH
- Remove an unused function


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@964 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-07 19:29:26 +00:00
Roman C d96cc304b1 Fixed a crash when a cyborg mechanic gets destroyed.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@963 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-07 19:08:23 +00:00
Giel van Schijndel 241f40f5fc soundsystem fixes/improvements
* remove file-global var `ALfloat listenerPos[3]` and replaced with function calls to alListener{Get}{n}{fi}{v}( AL_POSITION, ... )
 * modified sound_SetObjectPosition() to be better human-readable (removed some unnecessary temporary vars)
 * modified sound_SetPlayerOrientation() to a more verbose writing (+Doxygen comment)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@962 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-07 16:28:54 +00:00