Commit Graph

1290 Commits (a8a091a604bce0c001188c77694dfc2ae4dd9002)

Author SHA1 Message Date
Roman C a8a091a604 Updated ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1794 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-03 13:18:40 +00:00
Roman C 16b247dd6d Balance Changes
LasSat weapon:

-blast radius: increased from 2 tiles to 4.5 tiles
-blast radius damage: increased from 1000 to 2800
-reload time: increased from 5 mins to 8 mins
-chance to hit in the blast radius: reduced from 99% to 90%

NOTE: normal damage doesn't seem to have any effect on the LasSat weapon

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1793 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-03 13:09:48 +00:00
Dennis Schridde 68e56823e1 - Constification
- POINT -> Vector2i
- changed internalformat = getPixelFormat() to GL_RGBA in one place
- removed unused variables/functions
- proper intialisation


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1792 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-02 23:01:29 +00:00
Roman C a6b56ed7e9 - added balancing changes overview back to the ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1791 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-02 19:03:03 +00:00
Per Inge Mathisen 2f03ccf5cd Add helpful comments from patch #730 by Watermelon
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1790 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-02 16:37:37 +00:00
Per Inge Mathisen 0ebf1e2278 Add a new assert collection CHECK_DROID(psDroid) and sprinkle it over
the droid code. More carefully initialize some droid variables. Remove
a ton of unused droid code. Hopefully this will make it easier to debug.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1789 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-02 16:26:41 +00:00
Per Inge Mathisen b18c40d58a Oops. I accidentially turned on a gateway illustration debug feature. Turning it back off...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1788 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-01 21:16:44 +00:00
Per Inge Mathisen dc71f601f9 Exorcise hard-coded texture size numbers, so that we can now change the size of
the terrain texture atlas pages.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1787 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-01 20:59:11 +00:00
Per Inge Mathisen 3bc52689dc Remove unused TILE_BITMASK and use INT32_MAX instead of possibly undefined INT_MAX.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1786 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-01 19:40:18 +00:00
Per Inge Mathisen b532b1cc60 Close bug #6897 reported by Dennis. Fix two asserts with edit window's
demolish command, and also add the feature of allowing this demolish 
command remove map features such as oil resources.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1784 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-31 18:19:54 +00:00
Per Inge Mathisen 10cfe3c065 Better fix for move.c droid turning floating point bug. Code is now more
reliable, cleaner and will give better error report should it fail again.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1783 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-31 17:29:52 +00:00
Per Inge Mathisen 3900653046 Fix possible mp crash in armed transporter code. Patch by me and Watermelon.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1782 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-31 16:55:42 +00:00
Dennis Schridde 7355ad466f Revert r1780
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1781 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-31 16:07:50 +00:00
Dennis Schridde f9cb796b4e Added Troman's balacing changes from r1778 to the ChangeLog. (I.e. Kreuvf might be interested.)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1780 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-31 10:57:39 +00:00
Per Inge Mathisen 6eecf830ba Fix two issues with LasSat: You can no longer drag-build it (this would cause
an assert), and you can now build it and other multi-tile defense structures
over walls (plural) without asserting (or crashing) the game. I am sure there
are other issues left. Man, was that feature rushed! ;-)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1779 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 18:03:26 +00:00
Roman C 81812b89b4 Balance Issues (better late than never):
Light Cannon:
- weapon damage raised from 25 to 37
- weapon chance hit increased from 20 to 25
- weapon radius damage increased from 5 to 7

Heavy Gunner Cyborg:
- weapon damage raised from 30 to 37

Cyborg Engineer:
- construction component cost decreased from 17 to 10
- construction time for construction component decreased from 85 to 65 (used to be the same as truck's)
- hitpoints of construction component decreased from 50 to 40 (used to be the same as truck's)

Cyborg Mechanic: (all 3 repair components used to have almost same values, which is now history)
- repair component cost reduced from 50 to 35
- repair component build time decreased from 250 to 100

Heavy Repair:
- heavy repair component cost increased from 50 to 70
- heavy repair component build time increased from 250 to 300


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1778 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 16:53:17 +00:00
Roman C 2019b3f08d Aivolution Update:
- fixed a bug preventing AI from building a factory when playing with no-bases settings
- implemented minimal requirements for a base
- some clean-ups

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1777 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 14:34:08 +00:00
Roman C fd9dd2a93d Aivolution AI Update:
- fixed a bug preventing AI from locating its base
- improved base location routine

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1776 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 10:47:16 +00:00
Giel van Schijndel 9c15ebad81 * Use native C types (rather than the ancient WinAPI types, we inherited)
* Declare variables at the most localized scope


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1775 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 07:20:50 +00:00
Giel van Schijndel 1faab1bc89 * Fix compiling with MSVC (variable declarations at the start of the function)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1774 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 07:17:43 +00:00
Dennis Schridde 1ba7327b0c More verbose SVMESH members:
- s[xyz] -> screen, w[xyz] -> water
- Beware: Besides the name both are (probably) in screenspace coordinates
- .screen and .water only differ for water tiles and then only, because those may have a different .y if they are "PushedDown"
- .water is only used in locateMouse()
- .screen.z is used for basic visbility testing in drawTiles()
- Besides that .screen is only used in locateMouse() and to outline tile corners on keypress


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1773 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 02:44:38 +00:00
Dennis Schridde d56e96c52e Fix STATIC_ASSERT to not produce "unused variable" warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1772 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 02:26:41 +00:00
Dennis Schridde eca9d2bab6 Simplify code, mX -> mouseXPos (like in input.c)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1771 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 02:06:46 +00:00
Dennis Schridde db49a55df0 More constiness and documentation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1770 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 01:50:01 +00:00
Dennis Schridde 98cb1153c0 Make trig* functions const, which should be safe since they only depend on arrays which are setup on startup.
Also rename "count" to "i", since it really only is a loop iterator.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1769 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 01:41:48 +00:00
Giel van Schijndel 7af99e5645 * make inQuad const correct
* remove several unused and essentially no-op functions


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1768 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 23:11:52 +00:00
Dennis Schridde 9c6a4b29db Use special events structs for event handling.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1767 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 22:57:32 +00:00
Dennis Schridde 58040a0af6 Reorder initialisation/output of main()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1766 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 21:53:34 +00:00
Giel van Schijndel 1360756487 * Attempt to fix floating point imprecision from triggering annoying asserts
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1765 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 21:37:22 +00:00
Per Inge Mathisen e963c18731 Undo sat uplink fix because it broke lassat. Sorry :(
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1761 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 18:39:46 +00:00
Giel van Schijndel 6cb536c0d1 * Now load the "STR_RES" resource type directly from a file rather than an intermediate memory buffer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1760 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 18:12:02 +00:00
Per Inge Mathisen 9cecbdcb0d Fix satlink bug for real this time
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1759 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 18:08:17 +00:00
Giel van Schijndel 31d16a09bd * Fix assertion messages (the function names used there where incorrect, probably a copy&paste error)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1758 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 18:00:47 +00:00
Roman C fb6e1cbfd1 Aivolution AI:
- cleaned up debug messages

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1757 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 17:56:51 +00:00
Roman C 2e5aa11c29 1.10 AI update:
- implemented "autogame on" and "autogame off" to be used in wz debug mode
- rewrote event activation/deactivation

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1756 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 17:54:35 +00:00
Per Inge Mathisen 898afb4920 Turn disabled asserts into warning log messages.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1755 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 17:53:33 +00:00
Per Inge Mathisen dffa00c7bc Disable research assert that happens with "give all" cheat.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1754 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 17:39:39 +00:00
Per Inge Mathisen 5646aaf47a Remove a ton of unused code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1753 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 17:11:17 +00:00
Giel van Schijndel 24b444c1a1 No longer cast UDWORD visibleYTiles to an SDWORD if the other variable we compare it to is an UDWORD as well
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1752 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 16:28:12 +00:00
Giel van Schijndel 44d4aed7d9 * Remove old resource handler "TERTILES", was both undefined and unused (this used to be the texture loader for the software renderer)
* Rename resource handler "HWTERTILES" to "TERTILES" since the 'HW' (HardWare) part now does not make any distinction with any other kind of texture

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1751 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 16:08:08 +00:00
Per Inge Mathisen a79e474d98 Fix compile warning. Remove unused bit field defines.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1750 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 15:47:56 +00:00
Dennis Schridde 58e8bda3a9 _ISOC99_SOURCE is a libc macro, we now use WZ_C99 instead (which gets defined via __STDC_VERSION__)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1749 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 14:55:24 +00:00
Roman C e3c15e4a23 Aivolution AI update:
- implemented "autogame on" and "autogame off" commands in debug mode
- cleaned up whitespaces

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1748 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 14:27:11 +00:00
Roman C b4fc0b8a41 - implemented debugModeEnabled() scripting function to find out if game debug mode is on
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1747 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 14:21:39 +00:00
Roman C 508bc685c4 - fixed "mapTile: y coordinate bigger than map height" bug
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1746 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 14:17:53 +00:00
Dennis Schridde d34ab46555 Update to previous commit: Also ignore the activeevent in multiplayer games.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1745 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 14:10:32 +00:00
Dennis Schridde fde0d68082 - (__STDC_VERSION__ >= 199901L) -> defined(_ISOC99_SOURCE)
- Tune lighting and enable by default (This doesn't seem to affect the terrain)
- Declaration updates (Trolltech says that attributes need to go after the "static inline", the GCC manual is a bit unspecific about this)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1744 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 14:09:10 +00:00
Giel van Schijndel 7241d5f1e8 * soundDataBuffer.bufferSize now indicates the size of soundDataBuffer.data (as it should)
* previously this indicated the size of soundDataBuffer + soundDataBuffer.data instead (which was wrong)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1743 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 11:36:16 +00:00
Roman C 3708cb6bc5 - fixed getPlayerColourName() which was returning wrong color names
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1742 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 11:33:39 +00:00
Giel van Schijndel 73cf341da5 * Add failsafe to OggVorbis PhysicsFS seek callback to deal with invalid "whence" values
* Use tabulated code indentation for oggvorbis.[ch]
 * Move curPos and fileSize into a more localized scope

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1741 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 10:32:15 +00:00