Commit Graph

2723 Commits (f6a9f7c864520a7c6d2fb2990a5a5d71dcf8161f)

Author SHA1 Message Date
Giel van Schijndel c86606c553 * Just upgraded my Code::Blocks installation (to r4751 of it); updating the generated parts of the code...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3204 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 23:09:52 +00:00
Giel van Schijndel b0909d4c18 * Get rid of some unnecessary global variables (aAudioName, aTextName, aSubtitleName) since stack allocated variables sufficed
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3203 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 23:03:09 +00:00
Freddie Witherden 2f37e44da6 Revert r3198 which for some reason asserts.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3202 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 22:32:08 +00:00
Freddie Witherden 6a338c71ce Use the endian swapping functions provided by SDL.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3201 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 19:29:53 +00:00
Giel van Schijndel 31940330ab * Set svn:* properties
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3200 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 16:32:19 +00:00
Giel van Schijndel 4239adc560 * Fix an error where we would execute the wrong application code (wxApp instead of EditWorldApp)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3199 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 16:07:31 +00:00
Freddie Witherden 71b2a9260e Save psDroid->experience as a float so we do not loose precision. Tagfile only.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3198 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 15:51:45 +00:00
Giel van Schijndel 45125b9fc0 * Add all wxWidgets dialogs to the Code::Blocks project file and let wxSmith manage them
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3197 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 15:46:33 +00:00
Per Inge Mathisen 0c10287938 Add some doxygen documentation for tagfile code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3196 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 15:37:15 +00:00
Giel van Schijndel 6d03d9e4a7 * Don't mark the wxID_OK button as default since that is done by wxWidgets itself already
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3195 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 15:37:08 +00:00
Freddie Witherden 28a1b3e2b3 Fix a bug in recvDestroyStructure due to use of the un-safe function destroyStruct
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3194 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 15:14:26 +00:00
Per Inge Mathisen f7e7e44329 Add new tagfile method tagRead8vDup which reads an unsigned byte array of unknown
length, allocates a memory buffer for it, and returns it. Not recommended for
general usage.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3193 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 14:57:22 +00:00
Giel van Schijndel c6958c887c * Make sure to add listctrlval.hpp, numtextval.[ch]pp and wxstringconv.hpp to the Code::Blocks project file (for EditWorld) as well
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3192 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 14:28:22 +00:00
Freddie Witherden f2c631b76c Remove multistruct.c debug print-lines.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3191 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 14:09:33 +00:00
Giel van Schijndel 5c2ac3b1f2 * Add a "main.cpp" file to contain the main application start code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3190 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 01:08:26 +00:00
Per Inge Mathisen fae5745233 Remove unused function pie_DrawImageFileID. Rename pie_SetColourKeyedBlack to
pie_SetAlphaTest, and do not enable it while drawing the ordinary terrain.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3189 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 01:05:37 +00:00
Giel van Schijndel bc05caa6f6 * Use $(#boost) instead of an absolute path
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3188 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 00:52:04 +00:00
Giel van Schijndel 131ee472c4 * Add a Code::Blocks project file to aid in porting of EditWorld
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3187 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 00:18:36 +00:00
Giel van Schijndel d584c8f2cb * Don't use #pragma implementation as it causes warnings (not to mention I haven't got a clue what it's supposed to do...)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3186 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 00:17:42 +00:00
Giel van Schijndel ff51a264c7 * Rename initiallimitsdlg.[ch]pp to initiallimitsdialog.[ch]pp
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3185 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-26 19:28:53 +00:00
Giel van Schijndel f41d6c52a6 * Clean up the class declaration of CMainFrame
* Make sure to add proper #include guards to every header file

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3184 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-26 19:08:20 +00:00
Giel van Schijndel 8a3b056ac0 * Make sure to include the proper wxWidgets headers (at the proper place, not to interfere with wxSmith)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3183 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-26 18:47:04 +00:00
Giel van Schijndel 4c783140ee * Remove a left over debugging statement which I accidentily committed in r3181
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3182 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-26 18:28:11 +00:00
Giel van Schijndel c7894a8a01 * Make globals g_HomeDirectory and g_WorkDirectory an std::string instead of char[1024]
* Use a function to return the current directory as an std::string (rather than writing it into a buffer that's given along)
 * #define snprintf _snprintf so we can use that as well...
 * Some const correctness

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3181 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-26 18:26:40 +00:00
Giel van Schijndel 8708174859 * Move the declaration of CBTEditApp to the implementation file since I don't want to export it through the header
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3180 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-26 17:13:40 +00:00
Giel van Schijndel 2a4c3e6c12 * Alphabetically sort the project file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3179 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-26 17:13:26 +00:00
Freddie Witherden 27c3a29d73 Update combFire weapon to use the new getDroidEffectiveLevel function.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3178 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-26 14:25:32 +00:00
Freddie Witherden 624825854c Add getDroidEffectiveLevel that returns MAX(droidLevel, droidsCmdrLevel).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3177 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-25 22:06:51 +00:00
Per Inge Mathisen 2390ed5d63 Remove wrongly set (ie was unused) water xyz for tiles, and fix wrong comments.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3176 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-25 20:37:33 +00:00
Per Inge Mathisen 8ba3716f13 pietoaster: Clean up OpenGL includes. Include SDL_opengl.h instead of gl.h - do not
use both. Fixes warnings.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3175 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-25 18:26:15 +00:00
Giel van Schijndel 7f528c37d0 * Remove empty lines (to reduce diff size)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3174 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-25 13:00:09 +00:00
Giel van Schijndel bc66705498 * In Vector3uw explicitly use uint16_t instead of UWORD
* Add a function NETVector3uw to use for passing Vector3uw objects more conveniently over the network

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3173 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 23:36:02 +00:00
Dennis Schridde b6833db069 - define snprintf to _snprintf for MSVC
- use wzglobal.h defines where applicable
- add macros.h for imdloader.h: MAX/MIN
- sed RaNdOmTyPe to SDL-type: Reverts r2611 to easy porting.
  Watermelon afaik uses MSVC which has no stdint(.h), thus using it would make no immediate sense to him, since he has no more interest in POSIX-support.
- sed Bool/TRUE/FALSE to bool/true/false, like r2609
NOTE: r3171 was not vanilla 0.3, but also included a modified Makefile by me, wzglobal.h and some minor compilation fixes.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3172 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 22:50:45 +00:00
Dennis Schridde d99dcb0ce1 Version 0.3 of PieToaster
Features:
1. Editing:
 * Polygon duplication
 * Support for submodel
 * Commandline 'filename' is optional, also allows to enter filename via GUI
 * Multiple pies loading
 * Merging of multiple pies into one file
 * Support for 3DTRANS animation (oil derik)
 * Support for 3DFRAMES animation (cyborg)

2. Load and Save:
 * Creation, Load, Save of ani animation
 * Submodel add and remove

3. Model View:
 * Optional VBO for polygon and grids rendering
 * VBO cache for grids
 * Separated frames in animation rendering
 * Animation play

4. GUI:
 * Improved overall GUI usability

5. Fixes:
 * Fixed various bugs in GUI creation strings


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3171 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 22:11:18 +00:00
Dennis Schridde 248a8cb510 Minor indent
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3170 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 22:05:15 +00:00
Giel van Schijndel efba7fe2c4 * Rename the "url" tag of wxHyperLink to "href"
* Remove warzone2100.png from the current directory (it was just a (cheap) copy from icons/warzone2100.png anyway)
  * In aboutdialog.xrc refer to the warzone2100.png from icons/ instead...

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3169 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 21:20:34 +00:00
Giel van Schijndel 3ebbf43b9f * Add another ported dialog: InfoDialog; to directory wxDialogs
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3168 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 20:52:59 +00:00
Giel van Schijndel ae79afb9a4 * Use sasprintf in combination with sendTextMessage instead of DBCONPRINTF followed by sendTextMessage; which A) wouldn't work on non-debug builds, and B) would send the message twice to the local player on debug builds
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3167 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 20:23:55 +00:00
Giel van Schijndel cbb1011be9 * Fix a slight error I made in runningMultiplayer() where I swapped true & false
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3166 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 20:12:33 +00:00
Gerard Krol fbe50e45ff Update for the removal of optimisepath.c and the cleanup of the sequence code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3165 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 18:24:26 +00:00
Giel van Schijndel f2d8ba9617 * Rename class ExportInfo to InfoDialog and exportinfo.[ch]pp to infodialog.[ch]pp since other than being __used__ to display export info it has on its own nothing to do with export info
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3164 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 16:50:14 +00:00
Giel van Schijndel 06dab81c11 * Update Code::Blocks and MSVC project files to complement the cleanup of sequence code in r3162
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3163 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 16:31:51 +00:00
Gerard Krol 58b82f44ad Remove all RPL cruft from the sequence code. The new sequence code can be added to sequence.c easily. Projects will need to be updated.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3162 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 15:57:29 +00:00
Freddie Witherden 8f5fb1c714 Commit the final part of patch #897 (send/recvDestroyStructure)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3161 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 15:15:10 +00:00
Giel van Schijndel 776babad75 * Use a function to check for true multiplayer games (i.e. neither single player nor skirmish); rather than using a lot of copy-pasted code
* Allow cheating in true multiplayer games, but only when the debug keymap is enabled (which can only be enabled in debug builds)
Patch #899 by Buginator with some modifications by me (mainly adding all runningMultiplayer() calls)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3160 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 15:10:43 +00:00
Freddie Witherden 7e9b108645 Commit part 4 of patch #897 (send/recv structure demolished messages.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3159 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 15:10:34 +00:00
Freddie Witherden ea9d378131 Commit part 3 of patch #897 (and there is still more to come!).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3158 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 14:57:58 +00:00
Giel van Schijndel fd9d44e1d3 * Mark some strings for gettext translation
* Change rangeOnScreen to a bool

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3157 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 14:48:44 +00:00
Freddie Witherden 3bc0d30be1 Commit part two of patch #897 by Buginator along with some small changes by myself.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3156 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 14:47:44 +00:00
Freddie Witherden 838e9f6009 Commit the first patch of patch #897 by Buginator and myself with some additional changes by myself
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3155 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 14:41:25 +00:00