Commit Graph

850 Commits (a1d02fec76df0f7ff2e7c1b511deaad506b9301a)

Author SHA1 Message Date
Per Inge Mathisen a1d02fec76 Prune some dead code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1320 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-01 18:22:27 +00:00
Roman C 3123e32370 Skirmish AI:
-AI chat messages are now visible to all allies, not only to the player messages are addressed to
-upon help request AI will notify if it doesn't have enough units to come to help instead of silently ignoring the request

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1319 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-01 16:25:59 +00:00
Roman C 89f67fc187 Scripting Engine:
-fixed local string variables now being cleared between function calls
-implemented a setBit() scripting function to work with bitfields

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1318 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-01 16:22:01 +00:00
Dennis Schridde dcd8aa2eed Port of r1315 (HKLM and updater)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1316 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-01 00:19:03 +00:00
Dennis Schridde 6180aab09d - Make make visit intl/
- Update dbghelp.h to Wine 0.9.34
- Sync with branches/2.0


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1313 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-31 18:04:43 +00:00
Roman C 1c2ec5e07d Enabled recursive function calls for scripts.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1311 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-31 16:03:21 +00:00
Dennis Schridde c5e611767b Gettext support (0.16.1 included)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1310 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-31 15:34:35 +00:00
Roman C fbb361f5a7 Forgot in my last commit - ChangeLog again.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1309 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-31 15:27:40 +00:00
Roman C 7c7079c469 Updated ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1307 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-31 15:19:38 +00:00
Gerard Krol d775cc8962 r1302 caused smoke to be nontransparent when viewed in front of the sky or fogbox. This is fixed by first drawing the sky and fogboxes and then
the terrain and other objects. (it was the other way around)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1304 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-30 19:41:44 +00:00
Gerard Krol bbd1fc594f Fix a bug introduced in r1302: Unit selection boxes were not shown or periodically disappeared.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1303 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-30 18:12:56 +00:00
Gerard Krol 290fb5ebe2 A speed up for people who are fillrate limited: 1. The stencil buffer is no longer cleared each frame when shadows are disabled. 2. The color buffer
is no longer cleared each frame, but care is taken do draw on the entire screen so that no smearing takes place. This patch gives me about +30 fps. 
(from 45 to 75)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1302 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-30 17:38:35 +00:00
Roman C bfa9d23e01 Skirmish AI Update:
-a much faster unit production due to raised production effectiveness
-optimized construction of structure upgrades (smarter construction routines)
-AI trucks are capturing unoccupied oil resources more effectively
-slightly improved target selection when going to attack stuff
-rewrote routines responsible for helping allies that request help
-"I'm ok" command now works properly - notifies AI to stop helping you
-AI will now return to defend its own base when it is in trouble
-AI defends the base more effectively
-max number of droids allowed to build was raised
-won't stop building trucks when low on power anymore

FIXES:
-won't prefer humans when choosing who to attack anymore
-won't attack own buildings
-disabled cheat that was giving AI free units when starting with 'Advanced Base' option



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1301 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-30 15:14:32 +00:00
Roman C 086dfd8b12 -swapped parameters for some scripting functions for consistency
-renamed some variables for the sake of clarity

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1300 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-30 15:12:15 +00:00
Dennis Schridde 4f63de3518 - Include lib/gamelib in the includes list (audp_parser didn't compile anymore...)
- Use compiler_cc instead of custom compiler detection


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1299 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-29 19:15:30 +00:00
Roman C 83b2fdb540 -Rewrote scripting language manual and updated function listing
-Converted manual from .rtf to .htm

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1298 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-29 16:24:17 +00:00
Dennis Schridde 4107156595 Another buildsystem update:
- Do not modify CFLAGS inside automake Makefiles
- Add NEWS and INSTALL to comply with GNU standards
- Use aclocal's include functionality instead of acinclude.m4


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1296 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-29 12:41:18 +00:00
Dennis Schridde 8c2c3c97a8 Clean yacc headers properly
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1295 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-29 10:08:12 +00:00
Dennis Schridde 6d5b7850c4 Backport (from branches/2.0):
- ChangeLog for 2.0.6
- Exception handler


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1293 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-29 09:45:11 +00:00
Gerard Krol baf02b66df Oops, screwed up applying r1290. Broke the build by duplicating the whole function... This fixes it.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1291 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-28 18:38:36 +00:00
Gerard Krol 01ec2ae422 Patch by Watermelon: C89 compliant(MSVC) and removed the 'BOOL same', in the function compare_edge in piedraw.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1290 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-28 18:31:35 +00:00
Gerard Krol 2fe34ce6cc Per's patch to use texture compression, modified to always specify generic compression (and let the driver decide which compression to use) and to
only compress the texure pages, and not backdrops and other textures. This this should give a framerate increase of 5-10 fps on fillrate limited 
systems (cpu usage < 100%).


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1289 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-28 15:08:57 +00:00
Giel van Schijndel d659136496 * move audio_id.[ch] to lib/sound (because the soundlib depends on it, and libraries shouldn't depend on the main source, i.e. src/)
* further remove audio_GetIDFromStr from src/aud.c and rename audioID_GetIDFromStr (from audio_id.c) to audio_GetIDFromStr
  * also changed calling method of audio_GetIDFromStr, now it returns its retrieved value (ID index number) rather than writing it in a pointer given as parameter

PS MSVC project might be broken, I don't have it so can't check nor fix it

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1288 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-27 18:59:03 +00:00
Giel van Schijndel 902400c774 Warning fixes:
* NULL assignment to a non-pointer -> changed to assignment of 0
 * remove unused variables
 * remove empty function drawEffects (and a commented out line that called it)
 * Fix implicit declaration (of war_GetFog and war_SetFog) by including warzoneconfig.h

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1287 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-27 17:53:48 +00:00
Gerard Krol ee76f4ce10 Tweaks and optimisations for CPU usage. Tiles are no longer added to the bucket sort, and the size of the bucket array is made smaller. The maximum
number of simultaneous effects is down from 2500 to 500 (a big fight has about 200 effects). The effect processing and drawing is now done from one 
loop instead of from 2 (saves on the iterations). The pie_DrawTexTriangle function defaults to non transparent tiles and sets an alpha drawing mode 
only when needed.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1286 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-27 13:56:36 +00:00
Gerard Krol 8479fe1dad Bugfix: the framerate was always set to 30. Setting it via the config file now actually works.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1282 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-26 13:17:52 +00:00
Gerard Krol a4c540f24a New shadow code, easier on the fillrate of your graphics card, but uses
more cpu time. Buildings have static shadows, the shadows of 
components/droids get recomputed every frame. Rain/bullets/other effects 
do no longer drop a shadow.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1281 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-24 22:53:18 +00:00
Giel van Schijndel 0289e2664f Set executable bit, makes running the script a bit easier.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1278 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-21 00:39:11 +00:00
Gerard Krol c6d06db292 Oops, in r1273 the fog mode was not applied correcly when it was loaded from the config file instead of set by the user. This fixes it the way it
should have been done in the first place.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1276 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-20 21:06:43 +00:00
Gerard Krol 9e3acc087c The distance fog (aka Mist) start and end is now dependent on the zoom level. This should greatly reduce the number of popping tiles that can be
seen.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1275 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-20 20:46:26 +00:00
Christian Vest Hansen 521a12a00d * Initial upload of Python+JSON-RPC based lobby/master server.
I don't claim that this code is of outstanding quality >_>
  It was, after all, just written as a proof of concept prototype...



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1274 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-20 19:23:51 +00:00
Gerard Krol b5ffa39b9a Quick fix to make the game honour the selected fog mode in both singleplayer and multiplayer.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1273 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-20 18:03:05 +00:00
Giel van Schijndel 575e5a1ac7 * Fix bug #8758 (misspelling of "Thermal Amour") changed this to the correct US spelling ("Thermal Armor") for consistency's sake rather than the correct UK spelling ("Thermal Armour")
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1272 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-20 11:33:32 +00:00
Gerard Krol 6d4bbb8577 Fix crash on empty or nonexistent config file.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1266 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-18 21:15:32 +00:00
Giel van Schijndel 354bf5255e set executable bit on debian/rules (special make script for the creation of debian packages)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1264 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-18 15:01:38 +00:00
Dennis Schridde 689c30ae7d Better comments
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1263 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-18 00:41:47 +00:00
Gerard Krol 8a2df06e16 Move weaponROF(WEAPON_STATS *psStat) from design.c to stats.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1262 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-18 00:28:18 +00:00
Gerard Krol 95552bad16 The maximum weapon ROF that can be displayed by the design screen is now
(like all properties) determined on loading the stats file. A VTOL 
weapon that reports a ROF of 600 thus now sets the maximum. This might 
be a too large increase, but I don't think that we need to add more bad 
hacks to WZ. This patch was inspired by patch #690.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1261 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-18 00:07:57 +00:00
Per Inge Mathisen 4cbf5789ea More clean up of function and variable declarations in display code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1260 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-17 15:30:34 +00:00
Per Inge Mathisen ec4755b181 Remove dead code from mapdisplay.c and clean up the function declarations in
display3d.c, making many static. Most unused functions marked WZ_DECL_UNUSED
rather than removed for now.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1259 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 22:45:30 +00:00
Per Inge Mathisen c0440f8561 Remove unused header
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1258 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 22:04:47 +00:00
Per Inge Mathisen 445aa74644 Remove a ton of unused functions that were marked static and started to emit warnings.
A few were given WZ_DECL_UNUSED to silence warnings instead, since they are referenced 
in not yet removed code.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1257 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 21:59:43 +00:00
Per Inge Mathisen 2a31399a6a Remove lots of unused stuff from map.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1256 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 21:39:02 +00:00
Stefan Huehner f953bf0331 Small cleanup:
mark some char* vars and parameters as const.



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1255 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 20:26:40 +00:00
Stefan Huehner 59843ec8a2 Code-cleanup:
- make a lot of functions static
- remove unused extern declarations
- fix one function declarations () -> (void)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1254 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 20:23:35 +00:00
Stefan Huehner 57674e3545 Minor cleanup.
Remove some unsused vars,function,prototypes



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1253 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 20:08:23 +00:00
Dennis Schridde ca3b5909c8 Fix indention and some minor cleanup...
Fixing type-punned pointers is difficult, especially with that HEAP_ALLOC function...


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1252 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 19:31:15 +00:00
Per Inge Mathisen cfea4b4b3e Remove strange usage of hash names in soundtrack code. I am not sure
why it worked, or, perhaps, why it still works. Take care ;-)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1251 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 19:03:53 +00:00
Per Inge Mathisen 6e21dbe859 Remove unused HASH_NAMES code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1250 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 18:47:07 +00:00
Gerard Krol aec9db0a8f Updated the CPU hungry radar only once in 10 frames, instead of twice per frame. Replaced a call to iV_PaletteNearestColour(255, 255, 255) with
PIE_TEXT_WHITE.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1249 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-16 18:26:29 +00:00