Roman C
6e394af237
Make building sfx less annoying in the game.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4465 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-01 17:24:14 +00:00
Dennis Schridde
b2d8cd5187
ENABLE_NLS for MSVC
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4464 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-01 17:14:17 +00:00
Roman C
49903f9593
Get rid of unnecessary warnings when compiling release build using MSVC.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4462 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-01 15:56:39 +00:00
Freddie Witherden
59f951b0bc
Update the arrayMin[F] functions so that they now return the min value and set the index. Also add arrayMax[F] versions.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4461 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-01 11:26:53 +00:00
Freddie Witherden
4e0c1dbafd
arrayMinIndex: now in float form\!
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4460 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 23:16:01 +00:00
Freddie Witherden
0587cf8674
A the helper arrayMinIndex, which will return the lowest item in an array of ints.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4459 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 22:58:34 +00:00
Roman C
173f03519a
-don't add beacons to the map implicitly for the player sending it when using scripts, the scripts must explicitly do that now
...
-fixed beacon sound playing for wrong players
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4458 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 22:52:47 +00:00
Roman C
c8be736b57
Aivolution:
...
-check if found player base before attacking it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4457 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 22:33:35 +00:00
Roman C
e881fe7f14
Aivolution:
...
-taunts
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4456 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 21:23:58 +00:00
Roman C
1f74010e3b
make oil pumping sound (oilpump.ogg) quieter.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4455 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 18:59:51 +00:00
Roman C
c221b2ca4c
Show a console message when a beacon is received.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4454 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 18:59:02 +00:00
Roman C
659e33dc12
Increase volume for beacon.ogg
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4453 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 18:58:25 +00:00
Roman C
d82d60fe29
Update audio.wrf
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4452 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 18:48:04 +00:00
Roman C
bb93d34d3c
Update audio.cfg
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4451 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 18:42:15 +00:00
Roman C
35233a1f9b
Added a sound for beacons (based on ecmtower.ogg). Use f12 to make wz take you to the beacon location.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4450 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 18:25:58 +00:00
Roman C
8a12c396f4
Aivolution:
...
-fixed a bug that made Aivolution defend its own derrick instead attacking an unprotected enemy derrick by building a bunker near it.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4449 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 18:19:41 +00:00
Freddie Witherden
64f742d33f
Commit patch #906 which links droid speed to speed.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4448 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 16:40:51 +00:00
Roman C
e892dfe313
Updated ChangeLog.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4447 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 16:30:18 +00:00
Roman C
4526a96c02
Get rid of the lowest power level due to its unpopularity. Add a higher level instead. Used to be 100/400/700, now 400/700/1000.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4446 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 16:10:43 +00:00
Roman C
4a1cb2db67
Balancing:
...
-increased hit-points of oil derricks by 100%, since it gets destroyed too easily by lucky shots. Needs testing.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4445 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 15:56:12 +00:00
Giel van Schijndel
e2f81aaa54
* Add a new resource type (for use with .wrf files): DBPROP which is similar to SPROP, with as difference that instead of a CSV file it specifies an SQLite database file to load from
...
* Add the code to load propulsions from the propulsion table of the given database file (function `loadPropulsionStatsFromDB`)
* This code will make sure to load the propulsion stats-data in a similar manner (i.e. the resulting data in-memory should be the same) to the propulsion.txt loading code
* Use this stats loading implementation on single player
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4444 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-31 14:05:57 +00:00
Roman C
4166f82efa
Fix a crash when 7-8 AIs chat at the same time.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4443 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 20:14:03 +00:00
Giel van Schijndel
c10e4173fe
Utilise getStructureDamage in some more places as a replacement for PERCENT
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4442 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 19:47:42 +00:00
Giel van Schijndel
9ec3b36697
Use getStructureDamage at several places instead of manual screwing with PERCENT
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4441 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 19:33:20 +00:00
Giel van Schijndel
7dbdebe299
* Add a new function getStructureDamage which returns the amount of damage dealt to a structure (expressed as a number from 0.0 to 1.1)
...
* Remove macro CALC_STRUCTURE_SMOKE_INTERVAL and replace it with a static function (not inline, let the compiler make that decision)
* Utilise getStructureDamage instead of a rather unreadable call to PERCENT
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4440 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 18:32:51 +00:00
Roman C
e892a49048
Console will always show text messages using correct colors, even if console is dropped and alliances change.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4439 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 17:59:13 +00:00
Dennis Schridde
387fbd52d3
Typo in masterserver
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4437 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 17:30:19 +00:00
Dennis Schridde
15a75e90c0
Remove unused strings
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4436 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 17:25:10 +00:00
Giel van Schijndel
7f104e75b8
Draw the mouse cursor __after__ the GUI
...
-> We don't want the mouse cursor to be hidden behind it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4435 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 16:16:48 +00:00
Giel van Schijndel
e89a224b32
Add in support for coloured mouse cursors:
...
* Add a new configuration option "ColouredCursor", which if enabled will enable coloured cursors ingame
* Add a new API for setting cursors with: pie_SetMouse (previously frameSetCursor was used)
Patch #956 by Buginator; pie_.*Mouse API done by me (except for the iV_DrawImage invocation)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4434 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 15:44:50 +00:00
Per Inge Mathisen
3ee8a3ed7f
Add beginnings of a game self-test. Start with --selftest command line option.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4433 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 14:36:11 +00:00
Giel van Schijndel
9002fb5953
* Rename frameSetCursorFromRes to frameSetCursor
...
* Make frameSetCursor take a CURSOR (an enum) parameter instead of SWORD
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4432 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 14:11:33 +00:00
Dennis Schridde
36629b8f94
update-po
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4431 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 14:03:11 +00:00
Giel van Schijndel
bf57ea088e
Also make sure to save the PauseOnFocusLoss option
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4429 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 13:45:44 +00:00
Per Inge Mathisen
aa13010bb9
Add error message if you use an invalid command line option.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4424 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 13:26:06 +00:00
Giel van Schijndel
39b6c60501
* Change and clean up the cursors API
...
* Get rid of resource.h which duplicated code and as such was a maintenance hell/burden
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4422 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 13:23:11 +00:00
Giel van Schijndel
aa23ae9074
make pause on focus loss configureable (config option "PauseOnFocusLoss")
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4421 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-30 12:26:50 +00:00
Roman C
383b92185b
Balancung:
...
make AA projectiles faster.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4420 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 23:24:12 +00:00
Ari Johnson
b91006e4f1
Updated Xcode project
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4419 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 20:01:50 +00:00
Giel van Schijndel
c7b40d8566
Revert r4416
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4417 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:46:37 +00:00
Giel van Schijndel
ad68743327
Temporarily disable -Wmissing-declarations for lib/framework
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4416 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:33:05 +00:00
Giel van Schijndel
2fb4cf960b
Fix compile error introduced in r4413 (oops)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4415 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:22:55 +00:00
Giel van Schijndel
e9c167118d
Fix beacon code for real (r4408 used sizeof for the source variable, while it should be the destiniation)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4413 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:16:33 +00:00
Roman C
95f48377d5
Updated ChangeLog (Trunk).
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4412 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:10:08 +00:00
Roman C
5354c5272f
Fixed beacons code corrupting asStructLimits[] on linux.
...
Patch by Buginator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4408 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 18:00:30 +00:00
Roman C
5344f90d1c
Balancing:
...
Tank Killer now fires 4 projectiles (to match its turrent gfx), total average firepower stays unaffected.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4407 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 17:45:32 +00:00
Giel van Schijndel
931f87f70a
* Remove whitespace from the end of lines
...
* Add a FIXME note about needing to control the calling frequency of handleAbandonedStructures externally
* Moved variable reductionAmount into the most local scope
* Rename iterator `i` to `player`
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4406 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 13:27:54 +00:00
Freddie Witherden
29578ca90f
Cleanup of calcDamage in projectile.c
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4405 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 13:18:05 +00:00
Freddie Witherden
7c08673bcb
Commit patch #1030 which prevents structure painting.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4404 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-29 13:11:04 +00:00
Per Inge Mathisen
be566a7d6d
Add -Wcast-align and -Wmissing-declarations to autoconf debug builds, and fix warnings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4403 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 23:28:44 +00:00