Commit Graph

4623 Commits (1375e432b72f4bc688e1dc48865f80c4c3b278a1)

Author SHA1 Message Date
Buginator 1375e432b7 Should finally fix the smoking droid issue.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5764 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-03 17:52:03 +00:00
Giel van Schijndel a293a90e76 * Rename audio_Get3DPlayerPos to audio_GetPlayerPos and change it to return a Vector3f instead
* Rename audio_Get3DPlayerRotAboutVerticalAxis to audio_GetPlayerOrientation and change it to return two Vector3f's with a forward and upward pointing vector in it (which can be directly used by OpenAL)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5763 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-03 17:51:43 +00:00
Giel van Schijndel 9b8b577bff * Use deg2radf for degree to radian conversion instead of doing the multiplication ourself
* Use Vector3f_Mult to multiply all members with some number instead of doing it manually

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5762 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-03 17:51:30 +00:00
Giel van Schijndel 4c19888cba * Move the fixed point cruft used for representation of degrees and some matrix math into a seperate header: piefixedpoint.h
* Update the autotools, win32 makefiles, Code::Blocks and MSVC build systems

NOTE: Xcode will need an update for this


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5761 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-03 16:04:41 +00:00
Giel van Schijndel 72b767bfc6 Remove ScriptingManual.xhtml from the autotools build system as it got removed in r5752
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5760 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-03 12:53:01 +00:00
Buginator 8aabfd23b2 If we are going to check for a extension, we should do it correctly.
In this case, check GLEE_EXT_framebuffer_object.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5758 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-03 02:37:02 +00:00
Freddie Witherden 54df5e1b9e Add a special EVT_DESTRUCT event to give event handlers a chance to clean-up/free any resources they have allocated.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5757 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 22:56:14 +00:00
Dennis Schridde 571f019dbf Fix definitions: "Note that you need a space in front of the defined term."
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5756 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 21:59:19 +00:00
Dennis Schridde 9b07458f0d XHTML 1.1 to Trac Wiki converter
Usage: ./html2trac.rb < input.xhtml > output.trac
Note that this is currently customised for the scripting manual and quite possible that you have to extend/adjust it before it works for any other file.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5755 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 21:53:18 +00:00
Dennis Schridde 8e8e0c69f5 Moved scriptingmanual to http://developer.wz2100.net/wiki/ScriptingManual
(Assisted by XHTML and a converter which will be commited later.)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5752 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 21:09:11 +00:00
Per Inge Mathisen dc9eb02c34 Improve logging from assert when number of context variables don't match.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5751 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 21:08:50 +00:00
Dennis Schridde 431e51251b Reorder "fileinfo"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5750 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 21:08:33 +00:00
Dennis Schridde ec7ab31c06 The scripting language is also used for AI, but not exclusively (tutorials, for example, also use it)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5749 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 20:57:14 +00:00
Per Inge Mathisen 9699a5080f Improve logging from assert when number of context variables don't match.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5748 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 20:54:45 +00:00
Per Inge Mathisen 98bd943cc3 patch #1092: Remove some warnings reported by gcc when compiling lib/netplay/netplay.c by Bertrand Coconnier
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5747 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 20:23:37 +00:00
Dennis Schridde aa30a0fe6d Amend r5726: Forgot to update configure
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5746 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 19:47:58 +00:00
Giel van Schijndel 12612cefc4 Add two new functions:
* Vector3f_ToRadians to convert a rotation vector (Euler angles) from degrees to radians
 * Vector3iPSX_To3fDegree to convert the PSX "wannabe-float" degree vectors into a vector of ''real'' floats, with ''real'' degrees (i.e. 360 is completely round, instead of 65536 representing that)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5745 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 17:48:14 +00:00
Giel van Schijndel 5265103c2d Add two new functions Vector3f_EulerToForwardVector and Vector3f_EulerToUpVector which compute a forward and up vector from a rotation vector in Euler angles (pitch, yaw and roll)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5744 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 17:30:25 +00:00
Per Inge Mathisen 1d9b5af07c Remove dead code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5743 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 16:32:48 +00:00
Per Inge Mathisen 496d5d0ad8 Remove unused code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5742 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 16:14:59 +00:00
Steven Koenig ba1c26ce4b ScriptingManual.xhtml:
* Clean-up done; CSS comes next


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5741 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 15:57:13 +00:00
Freddie Witherden ed5b269cbd Some cosmetic changes to widget.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5740 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 15:47:41 +00:00
Freddie Witherden bfa3f7173c Fix yet another bug in vector.c.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5739 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 15:38:11 +00:00
Per Inge Mathisen b974fe2e01 Try to fix bug #12083: radar's frustum is drawn incorrectly, by making sure different parts
of the code agree on exactly where the radar beings and ends. Please verify if this fixes the bug.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5738 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 15:17:22 +00:00
Freddie Witherden 81ba4bec25 Switch to a floating point co-ordinate system which better reflects the underlying APIs (Cairo and OpenGL).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5736 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 14:47:12 +00:00
Per Inge Mathisen eb01bc2b64 patch #1064: Multi-threaded path-finding, this merges in the path-finding branch.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5735 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 14:37:53 +00:00
Per Inge Mathisen f6bf526248 Mostly cosmetic cleanup of naybor functions. Inline a macro that is only used once,
and break out of loop as soon as possible.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5734 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 12:32:30 +00:00
Buginator 6ccaa10f16 Enhances 'map preview' screen with map maker's ordering of the players position.
This allows players to get to the correct starting position on the map they picked, much easier.

Note, this uses a FBO.  If your card doesn't support it, then you will basically notice nothing different.  A fallback routine is done (but not in this patch), it is just waiting for a decent font *bitmap* that we can use.

Please see http://forums.wz2100.net/viewtopic.php?f=19&t=1953 for more discussion on the matter.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5733 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 04:28:58 +00:00
Buginator 1578d9ade8 *no code changes* Just adding a note to some functions that can use the master server to transfer the data to/from.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5732 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 03:58:26 +00:00
Freddie Witherden 977bc5e327 Add support for showing and hiding widgets; update how events are handled when a widget is hidden or disabled.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5731 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-01 21:24:19 +00:00
Dennis Schridde 79c1569a08 Add correctly broken (Word 2000, hope that is correct) ScriptingManual.htm
Keep xhtml11 variant for now, as Kreuvf is not yet sure whether he wants to maintain it or not.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5730 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-01 19:25:57 +00:00
Freddie Witherden f7f5d309a7 Move the glTranslatef calls in the widgetCompositeImpl function to outside of the for loop,
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5729 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-01 18:55:42 +00:00
Buginator 2df15ab5c6 Fixes endian issue with master server code.
We always want the structure packed to be 'network byte order' (big-endian).

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5728 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-01 18:11:00 +00:00
Freddie Witherden 2c20b8e0e7 Fix a minor indentation issue in widget.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5727 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-01 17:51:07 +00:00
Dennis Schridde 87f127c146 Do not autogenerate aivolution scripts
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5726 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-01 17:39:10 +00:00
Dennis Schridde dc2e44e9b0 Fix an instance of "WRP"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5725 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-01 17:33:55 +00:00
Steven Koenig 811d744d15 ScriptingManual.xhtml:
* Script functions, Debugging script functions, Script function constants, Script function externals and Script function callbacks are appendices now
* Sorted most script functions and add headings for them
* still to come: possible new CSS, appendix C and D, footer


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5724 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-01 14:38:39 +00:00
Freddie Witherden b45fad3ee0 Update the documentation for vector.h and fix a bug in vector.c.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5723 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-01 12:02:18 +00:00
Freddie Witherden 415f4555dc Remove some empty doc-blocks from betawidget.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5722 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-01 11:31:12 +00:00
Freddie Witherden b854f5bcb0 Remove some dodgy forward declarations from betawidget.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5721 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-01 09:15:43 +00:00
Freddie Witherden 7aef59ad0d Allow Betawidget to compile under OS X (OpenGL header location is different).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5720 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-31 19:30:36 +00:00
Freddie Witherden 30b0cfac27 Update the documentation for vectorCreate.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5719 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-31 18:39:59 +00:00
Steven Koenig f0366a49ad ScriptingManual.xhtml:
* Using CSS files of the readme for now, may be changed in later commits
* Markup for 10/11 parts complete
* Markup for the last one will take a while (~25 to 30 DIN A4 pages)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5718 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-31 11:29:45 +00:00
Giel van Schijndel b2e83cabc1 Add some ASSERTs to check for dodgy pointers
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5715 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-30 20:42:02 +00:00
Steven Koenig f01068730d * Cleaned ScriptingManual.xhtml by hand and with HTMLTidy which reduced the file-size by more than 50%
* Markup will be restructured in later commits
* Deleted the contents of scriptingmanual.css; will decide later if the file is needed or not


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5714 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-30 15:59:08 +00:00
Giel van Schijndel 11cd7ac69f Fix the MSVC project for compiling lib/exceptionhandler
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5712 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 21:27:17 +00:00
Giel van Schijndel 1f0410aeb5 * Slight refactoring of viewDataShutDown to reduce nesting
* Make the linked list manipulation actually ''work''

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5711 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 21:20:44 +00:00
Giel van Schijndel 164b02f4f0 Get rid of the `numFrames' fields that are only used by PSX code (it's only read in, but not used anywhere)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5710 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 21:20:31 +00:00
Steven Koenig c53386d59c Updated de.po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5709 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 18:57:27 +00:00
Giel van Schijndel 068d2d3174 Move the last translatable string that's used by the scripts into the scripts themselves: _("Return to LZ")
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5708 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 18:28:40 +00:00