Commit Graph

8 Commits (3a05848aa453780e62bde1a0c60bdc7e5a8719f8)

Author SHA1 Message Date
Giel van Schijndel 491b968833 * Make cdAudio_PlayTrack work with an enum instead of "magic numbers"
* Use this enum's values throughout the src/* code
 * Replace scripting function playCDAudio(int) by playIngameCDAudio() which is equivalent to cdAudio_PlayTrack(playlist_ingame)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3687 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-04 16:46:55 +00:00
Dennis Schridde 3c1a1512b7 Enable power generator after building oil-derrick, instead of when the build icon was clicked. (It is already too late then, it wont be displayed in the list.)
Additionaly:
- Remove soundBug event, which apparently was needed to workaround some bug in the sound system which no longer exists. (We can even pause in CALL_GAMEINIT, which apparently was not possible in 1.x.)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3545 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 22:05:37 +00:00
Dennis Schridde 8e115eca6e Tutorial fixes
- Fix a bug where you could build an oil-derrick too early.
- Prevent factory from being built before the voice has asked for it.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3361 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-05 20:33:48 +00:00
Roman C 8d7c7810ec Scripting engine update:
- some functions dealing with structure quantity at some location now additionally take a boolean which indicates whether half-built structures should be ignored (stock AI is updated accordingly)
- added sqrt() and exp() functions
- added friendlyWeapObjCostInRange() function to calculate cost of friendly units within a certain range
- CALL_RESEARCHCOMPLETED now additionally returns structure that has completed research and its owner

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2495 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 15:04:25 +00:00
Giel van Schijndel fe90b5374a * apply patch found in bug #6953 by David Brettle
NOTE: this does not fix the issue of the close button not flashing, it does however make this script request it to be flashed (as in, one down, on to go).

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1342 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-02 23:27:57 +00:00
Dennis Schridde 53ee7bc2d5 Port r1038 from branches/2.0
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1039 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-26 16:27:46 +00:00
Roman C 33887643eb Patch by karmazilla: fix to the Tutorial 'blue skybox' bug (bug #8087)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@923 4a71c877-e1ca-e34f-864e-861f7616d084
2006-12-25 14:34:03 +00:00
No Author 5ba7ddac6b Create final repository structure.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@362 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-28 17:47:08 +00:00