Commit Graph

542 Commits (7b7348e58006089e8b072814e6b6f5bc94e7425e)

Author SHA1 Message Date
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
Dennis Schridde f809352b61 License clarification about original data files.
Written by Per.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@850 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-19 17:32:15 +00:00
Roman C a7e6ef3b23 Fixed some compiler and linker warnings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@849 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-18 13:19:56 +00:00
Roman C e3b77d82d2 Script functions can now take float data type as parameters and return value
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@848 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-17 17:07:03 +00:00
Roman C 6d8dbda48e -fixed 'cpPrintProgram'
-fixed some spelling mistakes
-minor cleanups

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@847 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-17 11:25:03 +00:00
Roman C dacc1de1ca Scripting engine overhaul - Part I
-compiler and parts of interpreter now use union to store different data types
-got rid of a great deal of pointer->integer casts

-ASSERT() now outputs last event (or function) called by scripts
-implemented float data type support for the scripting engine - basic functionality at the moment

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@846 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-16 14:30:29 +00:00
Ari Johnson 3a54b1ab8d Fix for bug #7708: isHumanPlayer() now checks for player numbers outside
the range if [0,MAX_PLAYERS)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@832 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-11 23:03:02 +00:00
Dennis Schridde f28ff5553a Patch by Gerard Krol and Watermelon: penetration for certain weapon types
Made proj_SendProjectile to accept another BOOLEAN value 'bPenetrate',when set to TRUE it will create a new projectile upon impact and the newly created projectile will try to reach the destination of the impact'ed projectile.(FLAME,ELECTRONIC,GAUSS weapons projectile can penetrate several enemy units)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@831 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-11 21:31:28 +00:00
Dennis Schridde a715b54c9e Patch by Gerard Krol: sensorcrash.patch: fixes a crash when repairing a not damaged command center, corrects the mouse cursor
FIXME why is psDroid->asWeaps[0].nStat set to 0xCD instead of being initialized properly?


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@830 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-11 21:29:27 +00:00
Dennis Schridde d9e99cccec Remove inclusion of malloc.h (Doesn't seem to be needed and was causing problems on Mac)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@829 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-11 21:18:19 +00:00
Dennis Schridde e96aa46780 Patch by Gerard Krol: Clipping fix. (Buildings disappeared (cliped) while not yet fully out of screen.)
This is just a quick hack. Value 7 was only determined in trial and error, no one knows what FP12_MULTIPLIER exactly means.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@828 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-11 21:03:21 +00:00
Dennis Schridde 58441e7970 Add the forgotten Makefile.am
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@827 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-07 21:28:05 +00:00
Dennis Schridde acf370e1d8 Patch by Thomas Rast: droidSetBits() segfault
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@826 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-07 15:27:21 +00:00
Dennis Schridde d177037638 Declaration fixes. (Make declaration/definition match)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@825 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-06 22:09:33 +00:00
Dennis Schridde 7d3ad56fd5 Compilation fixes, macro removal, PHYSFS_fileLength by Gerard Krol.
Some more initialization in interp.c by me.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@824 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-06 21:58:13 +00:00
Dennis Schridde 5293ace6f2 Improve MinGW support. Shamelessly stolen from FreeCiv.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@822 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-06 18:35:59 +00:00
Dennis Schridde fb74a1f8dc Patch by Thomas Rast: Include string.h against warnings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@821 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-06 14:40:07 +00:00
Roman C b5c7fc5bd3 Removed external function prototype for a static function
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@820 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-05 19:47:28 +00:00
Roman C 90077ff547 Patch by Watermelon: New hit-system with target prediction
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@819 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-05 18:26:56 +00:00
Roman C 0fcdc8184e Patch by Watermelon: commander-related crash fix
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@818 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-05 17:32:54 +00:00
Dennis Schridde ae3f8f3fe9 Patch by Thomas Rast: HP/Reload bars overlaping
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@817 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-05 17:13:02 +00:00
Dennis Schridde 51b358a011 Mark trunk to save me from confusion...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@816 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-05 10:56:51 +00:00
Dennis Schridde a91b3f8803 Support crosscompilation for MinGW32
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@814 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-05 03:29:51 +00:00
Dennis Schridde 1899f95f70 Fix usage of CHAR which was removed in r808
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@813 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-04 23:45:28 +00:00
Dennis Schridde 770af57c20 Remove more extra types
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@812 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-04 23:16:51 +00:00
Roman C 9aebc7c2b5 Patch by Watermelon: Droid Multi-Turret Support
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@811 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-04 22:56:28 +00:00
Dennis Schridde b1c7773299 Patches by Charon, slightly modified:
- *WarzoneKeyNumeric definition changed to SDWORD
- Report wrong tracknumbers to LOG_SOUND and don't crash in sound_Play*DTrack
- Correct --help text
- Make console backlog key configurable


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@810 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-04 21:05:31 +00:00
Dennis Schridde ec44ab5e7d - Fix last commit (setDrawShadows() was undeclared, because I forgot to include a header).
- Also change --(no)sound to just set war_setSoundEnabled() and store the config in configuration.c instead.
- resolution config value has been changed to width and height (easier to parse). I probably forgot to tell that I changed the --viewport cl option to --resolution, which should be more clear to non programmers.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@809 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-04 20:49:49 +00:00
Dennis Schridde 67056c8d24 - Droped a lot of (nearly) unused types from lib/framework/types.h
- Remove lots of unused functions (Windows/DDraw related)
- Now store the used bitdepth in the config and thus make it configurable without having to modify the sourcecode


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@808 4a71c877-e1ca-e34f-864e-861f7616d084
2006-11-04 01:11:26 +00:00