Commit Graph

3577 Commits (53507faee038dd51dcad5a89de2c0d86ee40d65a)

Author SHA1 Message Date
Giel van Schijndel 53507faee0 Add the exceptionhandler from Dr. MinGW (part of mingw-utils) with my fixes to it (doesn't compile & link in yet)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4489 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-05 16:00:58 +00:00
Giel van Schijndel 465d5d73fe Use $(CPPFLAGS) as well when compiling with the raw makefile system
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4488 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-05 15:58:25 +00:00
Per Inge Mathisen 274ae7c9a4 Enforce strict function prototypes for autoconf builds, and fix function prototype problems.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4487 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-05 15:34:55 +00:00
Giel van Schijndel 0d8dcee47c Update the Code::Blocks projectfile for r4484
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4486 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-05 15:32:21 +00:00
Per Inge Mathisen a2c02f9fb7 Fix savegame bug. Do not use strlcat with sizeof on array pointers of unknown length!
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4485 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-05 15:27:23 +00:00
Giel van Schijndel 665e57dc12 Move the exceptionhandler to a directory of its own
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4484 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-05 15:11:43 +00:00
Per Inge Mathisen b41b7358b7 Add safer, proven versions of strlcpy and strlcat from OpenBSD.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4483 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-05 11:45:29 +00:00
Per Inge Mathisen 4ca8e85ae4 Remove two asserts to make savegames work again.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4482 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-04 22:50:23 +00:00
Roman C 1b786fd5a8 Structure Balance:
-increased hp of walls by 2.5 times
-increased hp of hardpoints and fortresses by 2 times

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4481 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-04 21:12:58 +00:00
Roman C 244668ce93 Flamer Balance:
- "Plasmite flamer": ROF decreased, damage increased, projectile flight speed decreased. Overall damaged not affected by changes.
- "Inferno": now has two jets instead of one, to match the weapon turret gfx. ROF was decreased, damage increased, projectile flight speed decreased. Overall damaged not affected by changes.
- "Thermite Flamer": ROF decreased, damage increased, projectile flight speed decreased. Overall firepower slightly increased.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4480 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-04 20:19:51 +00:00
Roman C cd836a4c96 Increased HVC's ROF and decreased damage. Overall damage not affected.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4479 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-04 19:16:46 +00:00
Roman C bdf02e6d05 Reduce flamer ROF, increase damage to make sure "unit dealing no damage to objects with high armor" problem doesn't occur. Overall damage unaffected.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4478 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-04 19:10:24 +00:00
Roman C 0bb12ed36c Super-Cyborg Balance:
-Super Heavy Gunner has more firepower
-Super Auto-Cannon Cyborg has more firepower, range has been slightly decreased
-Super HPV Cyborg; firepower increased, range increased

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4477 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-04 18:05:09 +00:00
Roman C 7d71089d98 "Rocket Autoloader" research now has "HEAT Rocket Warhead" as a prerequisite, instead of "HEAP Mini-Rockets". This fixes bug #11312.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4476 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-04 17:27:29 +00:00
Roman C 93b5e7269b Weapon Balance:
-slightly decrease Mini-pods's short-range and long-range accuracy
-increase MRL's short range accuracy and decrease it's long-range accuracy
NOTE: as a result mini-pods now do more damage to tracked units than MRL

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4475 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-04 16:22:53 +00:00
Roman C c3164dc49a Update comments for a function.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4474 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-03 22:08:25 +00:00
Roman C f60f39c853 Fix one one the possible reasons for "SendDroidMove: Invalid move order" assert.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4473 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-03 22:00:14 +00:00
Roman C 9d7679b740 Reduce cyborg production time by ~20%.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4472 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-03 21:15:41 +00:00
Roman C 778a2f907f Make DROID_CYBORG_SUPER droid type visible to scripts.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4471 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-03 17:31:15 +00:00
Roman C 70884fa8e1 Move victory/loss text messages from scripts to the engine, to make them translatable.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4470 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-03 16:50:05 +00:00
Roman C 0ee1e1b965 Fixed warnings on MSVC.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4469 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-02 17:39:42 +00:00
Freddie Witherden a2ecc16596 Fix a bug which caused the in-game kill count not to work. (Credit goes to Buggy on this one.)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4468 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-02 16:21:38 +00:00
Roman C 4f0e59e488 Remove ENABLE_NLS, since it breaks compilation on MSVC.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4467 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-01 20:00:47 +00:00
Roman C 734a823e5d Increase hp of all buildings by 100%.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4466 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-01 17:47:55 +00:00
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