Commit Graph

670 Commits (9f616f8f8c8ccb511c6f7eed578dcdbcf0f820af)

Author SHA1 Message Date
Roman C 840312f8ea Patch by Watermelon with slight modifications:
-new ORDER_CIRCLE VTOL command - will defend a certain position flying over it and engaging enemies nearby
-adds additional armor types for all sides of a droid (rear, front, top, bottom, left, right) - additional armor definitions are in body.txt.
Droid damage is now also a function of the impact side.
-adds multi-turret support for VTOLs
-modifies connectors in bodies: first 5 connectors are for ground units, the rest is for VTOL.
-introduces some fixes

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@901 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-17 17:12:14 +00:00
Roman C cee8ff2da9 Updated makefiles
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@900 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-17 12:57:14 +00:00
Roman C 7590ea72a7 -added "case-insensitive" %option to chat_lexer.l, so that -i flag doesn't have to be specified during compilation anymore
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@899 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-16 16:54:15 +00:00
Roman C 14cd4b60cc Scripting engine update:
-void pointer is now compatible with any other pointer type
-strings can now be directly compared using '==' and '!=' operators
-added a linguistic chat message parser with some generic messages predefined - to be used for Human<->AI and AI<->AI communication
Note: chat_lexer.l should be compiled using an additional -i switch for case-insensitive lexer

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@898 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-16 14:59:50 +00:00
Dennis Schridde 3f4119994f Fixes by Hikaru:
- bug#7423 : Segfault because of missing argument to COMPRINTF in src/structure.c
- Repair units recieving attack orders and are thus not repairing.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@897 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-09 11:04:35 +00:00
Dennis Schridde 8c0393f7ca Some minor cleanups, removed unused/unneeded functions, stoped debug spamming
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@896 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-08 19:14:32 +00:00
Roman C ca6d0af961 Fixed a bug which was preventing script increment/decrement operators to function properly
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@895 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-06 18:57:17 +00:00
Dennis Schridde 4ca32b9947 Remove invalid and unnecessary forward declaration of an enum.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@894 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-04 15:47:08 +00:00
Dennis Schridde cc5c9167e6 Fix windows compile and convert main.c to WZ_OS_ and WZ_CC_ defines.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@893 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-03 16:31:19 +00:00
Dennis Schridde 9188b707a6 Very tiny beautification.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@892 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-03 00:49:43 +00:00
Roman C 2392bc8c9c Disabled CALL_DORDER_STOP script callback - fix to the the callback bug as described by Hikaru-orly
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@891 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-03 00:36:18 +00:00
Dennis Schridde 09c9051bfb Cleanup projectile.c, fix warnings, incl. a fix from Watermelon which should prevent flamers from shooting over the whole map.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@890 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-03 00:26:31 +00:00
Roman C 10daf67ea4 -added increase/decrease operators (seems to have a minor flaw atm though)
-fixed MSVC compilation issues and wrong casts in initializations

Scripting Engine:
-lexer will now skip all macros in script files - allows to use macros in IDEs
-float data type can now be used in boolean expressions
-fixed visibility check in initEnumStruct() script function
-fixed playerLoaded() script function
-added some new script functions
-Object.weapon now also works with structures
-added decrement/increment operators

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@889 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 23:27:00 +00:00
Dennis Schridde 634435e712 Change VAL_REF from a define to part of the VAL_... enum.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@888 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 16:07:00 +00:00
Dennis Schridde b21352165e Remove a ; Should the if have been removed instead?
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@887 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 14:40:15 +00:00
Dennis Schridde bf9d1d0fd1 Fix last commits and remove another bunch of warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@886 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 14:38:09 +00:00
Dennis Schridde 495824aea2 Patch by Christian Ohm:
018 - Warning fixes in lib-framework


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@885 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 13:06:56 +00:00
Dennis Schridde 4f837c0c70 Patches by Christian Ohm:
034 - Reorganized src-warcam.c
036 - Cleanup includes and function declarations


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@884 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 12:50:28 +00:00
Dennis Schridde aa7058a160 Patch by Christian Ohm:
033 - Small fixes


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@883 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 11:25:55 +00:00
Dennis Schridde 746a25ba13 Fix last commits by adding LOG_WARNING
Patch by Christian Ohm:
028 - Add LOG_WARNING


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@882 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 11:19:48 +00:00
Dennis Schridde 22ac91e2fe Patch by Christian Ohm:
031 - Simplify a few functions in src-keybind.c


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@881 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 11:15:49 +00:00
Dennis Schridde 208f0b711b Patch by Christian Ohm:
030 - Better output for loadFile2


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@880 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 11:09:36 +00:00
Dennis Schridde 8f7603e4bd Another forgotten init...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@879 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 01:06:11 +00:00
Dennis Schridde 7855ebd348 Initiallize 10k+ lines of array entries...
I'll personally kill the one who adds another unitialized entry to an array with tons of members like these... ( ;) )


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@878 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-02 01:05:14 +00:00
Stefan Huehner ae103b3de3 fix compilation without #define DEBUG, after r876
Some variables, functions used are only compiled
in with DEBUG so the debugging-calls can only be
used inside DEBUG



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@877 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-01 23:03:17 +00:00
Dennis Schridde c510f87ed7 Patch by Gerard Krol: Removal of debug macros
Changes several DBPx macros to debug() calls and:
I introduced 2 new categories: LOG_MOVEMENT and LOG_ATTACK
and what didn't fit in was set to LOG_NEVER.



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@876 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-01 22:22:29 +00:00
Dennis Schridde f2d84cf386 Patch by Watermelon: Commander and transport fixes (cmdfix1)
1.Fixed a potential crash with transport.
2.Fixed a crash/repair units disorder when linked to a commander(found by 
hikaru-orly)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@875 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-01 22:06:31 +00:00
Dennis Schridde da3e52a447 Fix mime-types and rc file.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@874 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-01 22:02:14 +00:00
Dennis Schridde 7b7348e580 Patch by Watermelon: Projectile fixes 5h (slightly modified by me)
1.Fixed a crash when firing the 2nd/3rd indirect weapon in combFire in 
combat.c.
2.Fixed target prediction finally(confused by x,y,z in pie and x,y,z in game 
and swapped the sin and cos and never thought droid->sMove.dir is in 
degree's ...) AA weapons can hit VTOL's relatively easy now due to this 
change.
3.Added smoke to AA gun bullet explosion effect even if it hits the target.
4.Fixed a bug which prevents AA weapon area of effect damage from working 
properly(VTOL's was excluded in area effect damage check in original 
project_Impact function),the 25% chance of AOE damage of AA weapons defined 
in weapons.txt should work now.
5.Changed units hitbox radius to use unit pie imd:
avg(imd.xmax + imd.zmax) for 2D radius
(imd.zmax + component.imd.zmax) for height(z) radius
6.Fixed crashes when firing at baba people,baba vehicle in singleplayer 
campaign(thanks to hikaru-orly for the crash reports)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@873 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-01 21:50:58 +00:00
Dennis Schridde b8046b4aa6 Revised warzone2100.rc with help from MSVC.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@872 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-01 16:57:52 +00:00
Dennis Schridde cfcd8b3823 Fix clipboard and compile on Windows. (Reported by Giel.)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@871 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-29 17:57:58 +00:00
Per Inge Mathisen 031c7c2800 Add version check for bison 1.31 or better, since older versions do not
support the required %name-prefix tag. MacOSX, incredibly, still ships
with an older version of bison than this, so we need the check.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@870 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-28 19:47:32 +00:00
Roman C 9333768f6a Attempt to fix a script callback bug as described on IRC
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@869 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-28 18:40:07 +00:00
Roman C bb9fbc9fb2 Patch by Watermelon:
-adds penetrate flag to weapons.txt (relevant for multiplayer)
-increases hit-box radius
-adds some fixes to the hit-system

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@868 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-26 16:30:34 +00:00
Dennis Schridde 87da22bce1 - Fix maybe bugs introduced in last commits
- Fix a lot of char* related warnings (fixing of scripttabs.c needs to be finished like I started it)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@867 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-26 13:45:04 +00:00
Dennis Schridde 3ceab2a84f Patch by Christian Ohm:
044 - Use int for gamma to avoid float imprecision


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@866 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-26 12:12:34 +00:00
Dennis Schridde 526cd5482f Patches by Christian Ohm:
013 - Cleanup environ.c-h
015 - Remove some unused code from frame.c-h
017 - Remove unused function ScanFilename()
023 - Fix more warnings, remove unnecessary functions


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@865 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-26 11:58:01 +00:00
Dennis Schridde 35ac675a7c Patch by Christian Ohm:
012 - mouseAtXXX cleanup


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@864 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-26 11:48:30 +00:00
Dennis Schridde a432f5628f Patches by Christian Ohm:
010 - Remove unused sound compression code
011 - Remove unused audio parameter VagID


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@863 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-26 11:45:04 +00:00
Dennis Schridde f25a9aa3ac Not yet changed parts from patches of Christian Ohm:
003 - Remove all references to hWnd
004 - Remove DirectDraw flag
005 - Remove DDrawDriverName and D3DDriverName
006 - Remove all references to hInstance
007 - Remove some unused Windows types
008 - Remove VidMem parameter
009 - Remove bitdepth variables


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@862 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-26 11:39:54 +00:00
Dennis Schridde 141a421d04 Patches by Christian Ohm:
002 - PSX removal part 2
019 - Remove PSX conditionals
020 - Remove IsPSX variable
021 - Remove unused parameter PSXSeqNumber from seq_AddSeqToList and seq_AddTextForVideo


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@861 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-26 11:20:44 +00:00
Dennis Schridde 13528b9d71 Patch by Christian Ohm: 045 - Fix playlist code
- Move two global variables only used in PlayList_Read into that
   function.
 - Remove a useless comparison (unsigned int can never be < 0)
 - Check for '\r' as well as '\n'. This should make playlists with DOS
   line endings work.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@860 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-26 10:54:22 +00:00
Dennis Schridde c7cf9cc584 Fix typos in COMPILE and remove outdated COMPILE.html (feel free to add it back after you fixed it)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@859 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-26 10:44:21 +00:00
Roman C 047b29a4e0 Changed MSVC warning level to highest
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@858 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-25 17:45:33 +00:00
Roman C f3e0227b45 Patch by Watermelon:
-fixes disappearing oil derricks (bug #7740)
-allows structures to have multiple weapons (structureweapons.txt format changed)
-fixes muzzle flash for 2nd and 3rd weapon

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@857 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-25 17:38:27 +00:00
Roman C 0d84e0609b Fixed another MSVC related issue overlooked in last commit and some spelling mistakes
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@856 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-25 16:53:00 +00:00
Roman C 9b7ab89441 Fixed MSVC related issues
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@855 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-25 16:49:32 +00:00
Dennis Schridde fafa69842f x86_64 fixes by Pseudonym404. (Incl. some minor other changes, eg in src/game.c)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@854 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-25 01:26:05 +00:00
Stefan Huehner da14eaf2ad Add some more const to char* function parameters,
which aren't modified inside the called function.



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@853 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-23 13:28:38 +00:00
Roman C a0fd0ea975 Fixed multiple definition of 'result'.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@852 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-19 20:50:02 +00:00