Commit Graph

2787 Commits (8ce3b1fcce6a94424091904305af0ed645ccffc5)

Author SHA1 Message Date
Per Inge Mathisen 5b1ec5cfc1 Add new debug mechanic: objTrace(). It works like debug(), but also takes an object parameter.
Debugging info given with it will only be displayed for the enabled game object. Default key
to enable debugging info for a game object is CTRL+L. Converted LOG_MOVEMENT to use it.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3432 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-11 22:45:04 +00:00
Per Inge Mathisen f246839359 patch #928 ported map send/rev to new netAPI by Buginator with style fixes by me
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3431 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-11 21:39:41 +00:00
Freddie Witherden bed018a8b0 Commit patch #925 by buginator along with some style changes by myself.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3430 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-11 20:17:39 +00:00
Per Inge Mathisen 2cd496d9c7 Remove unused defines, prettify animation code a bit, and use same electronic
warfare effect code for all objects - the one which does not modify individual vertices.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3429 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-10 22:18:20 +00:00
Per Inge Mathisen 7b81b5c76f Fix some ugly shadowing and reuse of variables.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3428 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-10 17:50:40 +00:00
Giel van Schijndel 236ed6d904 * Provide sane defaults for the screen resolution (which is used when the screen resolution isn't fully specified or has zero as it's width or height, during loading)
Inspired by patch #930 by Buginator (his patch only used sane defaults during configfile saving, this changeset instead works during loading)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3427 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-10 10:33:59 +00:00
Giel van Schijndel 9f70f97cc0 * Rename sendBeaconToPlayerNet to sendBeacon
* Port (recv|send)Beacon over to the new networking API
Patch #924 by Buginator and some modifications by me


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3426 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-09 23:50:44 +00:00
Giel van Schijndel 69f87c9bed * Port the NET_PLAYERRESPONDING functions over to the new networking API
Patch #932 by Buginator with some stylistic changes by me


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3425 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-09 23:42:35 +00:00
Giel van Schijndel 7560894e4c * Port the NET_LEAVE messages over to the new networking API
* Provide an implementation for the NET_KICK messages (in the new net API of course)

Patch #922 by Buginator with some modifications by me


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3424 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-09 23:30:42 +00:00
Giel van Schijndel 73d329fde8 * Fix a magic number (28) supposedly representing enum value NET_LEAVING (which is 18)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3423 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-09 23:07:36 +00:00
Giel van Schijndel 387b65ba65 * Apply what's left of patch #904 by Buginator (add a comment it contains)
* And modify a variable to an unsigned int (instead of a UBYTE) as we don't need no size guarantee there


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3422 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-09 22:55:42 +00:00
Giel van Schijndel ee131441e6 * Port structure.c over to the new netcode API
Patch #902 by Buginator with some minor changes by me


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3421 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-09 22:42:14 +00:00
Dennis Schridde bbbd4942fe Move the deps of our deps to the right of our deps...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3419 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-09 20:51:48 +00:00
Dennis Schridde e7ed93d5f9 - Move libraries to satisfy our dep's deps out of the PLATFORM choice, since they would be the same for windows and mingw32.
- Link against GLC instead of glc32 for windows, since that is what the devpkg contains.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3418 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-09 20:26:29 +00:00
Dennis Schridde f6a9f7c864 - Link against all required libs for PLATFORM=windows (How shall mingw32 be treated? Does make's syntax allow an OR? Then we could unify them again...)
- Remove -L. for mingw32, since libdbghelp.a is now included in the devpkg.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3417 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-09 20:23:23 +00:00
Giel van Schijndel 26699ed15d * Change the bugtraq:* properties on the entire trunk directory tree to use http://trac.wz2100.net as its bugtracker
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3416 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-09 16:45:25 +00:00
Giel van Schijndel 30b9c1d6b1 Fix two Doxygen errors:
* parameters `weaponClass` and `impactSide` of featureDamage() didn't have a description
 * parameter `subType` was wrongly referrered to as `type` of function sendMultiPlayerFeature

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3415 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-09 12:18:36 +00:00
Dennis Schridde ca607873eb Correct include paths for Makefile.raw:
- Include include/ after any other dir
- Add include/libpng12 to the paths


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3414 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-08 23:01:54 +00:00
Dennis Schridde 85a241f5f7 In Makefile.raw use $(RMF) and _not_ $(RM) to delete stuff.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3413 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-08 22:32:24 +00:00
Per Inge Mathisen f7fbf845c0 Small cleanup to animation code, and fix copy&paste typo in 3ds2pie.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3412 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-08 21:58:05 +00:00
Giel van Schijndel 691f3640aa * Change the bugtraq:* properties on EditWorld's directory tree to use http://trac.wz2100.net as its bugtracker
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3411 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-08 18:03:51 +00:00
Giel van Schijndel 28f40cd637 * Initialise CBrushProp's member variables in the constructor's initialisation list instead of its code-body
* Rename some private member variables: s/m_\([^\s]\+\)/_\1/g

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3410 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-08 18:01:03 +00:00
Gerard Krol 0c5fff97b5 Patch by Kelly Anderson: Subtile changes to allow for building outside the source tree.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3406 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-08 13:24:25 +00:00
Giel van Schijndel c044483685 * Add doc/code to the ignore list since that's the directory where Doxygen puts its documentation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3405 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-07 21:42:14 +00:00
Per Inge Mathisen 505e451f31 Patch #916 by Buginator to save number of games played, with style changes by me.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3404 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-07 20:49:01 +00:00
Per Inge Mathisen 5657b38ef0 Hopefully fix bug that would lock fps setting to defaults.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3403 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-07 20:48:29 +00:00
Giel van Schijndel e811ab6c89 * Fix a compile error (needed to use OR '|', not a comma ',')
* Fix a warning due to the strange WinAPI (needs a char* but uses it as a char**)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3402 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 23:46:44 +00:00
Giel van Schijndel 0245c21866 * When PhysicsFS fails to retrieve the home/user directory fall back to using the current working directory
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3401 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 23:40:24 +00:00
Freddie Witherden 9099584718 Fix a bug introduced in r3339, thanks to Buggy for the heads up.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3400 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 22:44:42 +00:00
Giel van Schijndel dfc4e101ad * When cheating ourselvs new features & droids (in the CTRL+O debug menu) make sure to notify other hosts & players of this
Patch #920 with some modifications by me to make it compile and slightly simpler


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3399 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 21:55:23 +00:00
Giel van Schijndel 53abc0a73b * Correctly fix "clever" use of malloc __without__ introducing a memory leak in the process (r3305 introduced one)
* Make sure we use the same signdness in IMAGEDEF as we did before r3302
 * Use a correct format specifier ("%u") for printing an unsigned integer
 * Turn a bunch of UDWORDs which don't necessarily need to be UDWORD into unsigned ints as one of those __does__ need to be an unsigned int (i does, for the printf format specifier)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3398 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 21:21:31 +00:00
Giel van Schijndel 12ea06d1b6 * Remove the IMG -> XML convertor script as the IMG format has been changed to CSV in r3302
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3397 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 20:53:45 +00:00
Per Inge Mathisen eeb1c6832c Add a number of options to the 3DS to PIE converter. It can now successfully import
3DS models made in 3DS Max to Warzone.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3396 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 20:26:15 +00:00
Giel van Schijndel efda8508f6 * Replace pointer psFormation (which was used as a bool) from SAVE_MOVE_CONTROL and replace it with BOOL isInFormation
* This should make the saving & loading of mdroid.bjo, droid.bjo, munit.bjo, unit.bjo & limbo.bjo portable accross 32bit & 64bit platforms
  * This __will__ break current savegames though
 * Add functions SaveDroidMoveControl and LoadDroidMoveControl for saving&loading the SAVE_MOVE_CONTROL data

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3395 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 20:23:01 +00:00
Giel van Schijndel f9d4dc0a6d * Remove unused (and empty) droid.bjo file for map Rush
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3394 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 20:18:34 +00:00
Giel van Schijndel e92eb0663c * Fix wrong/out-of-date definition of SAVE_MOVE_CONTROL
* Remove some commented out (and definitly unrequired) SAVE_MOVE_CONTROL.psFormation storage code

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3393 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 19:33:42 +00:00
Freddie Witherden 951850c894 Fix a small bug in projecticle.c (SDWORD used instead of a float) and update some comments.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3392 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 19:19:58 +00:00
Giel van Schijndel b8db6cdc17 * Rewrite some MSVC specific debug code which compares to check for 0xcd initialised memory (aka uninitialised memory)
* Also make this piece of code only compile when using MSVC (as other compilers/systems use other values to check for uninitialised memory)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3391 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 19:06:58 +00:00
Giel van Schijndel 322d1a056b * Fix indentation
* A minor rewrite of two if-statements' conditions (this should __not__ change any behaviour)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3390 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 19:02:40 +00:00
Giel van Schijndel 9073d27734 * Correctly enter Doxygen comment mode (with "/**")
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3389 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 18:17:36 +00:00
Roman C 0b547158fe Added some mini-pod templates for AIs.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3388 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 17:15:28 +00:00
Giel van Schijndel 34abd987e0 * Move part of the SAVE_DROID structure into the DROID_SAVE_V99 macro instead (was done wrongly in r811)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3387 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 17:09:27 +00:00
Freddie Witherden b2e6cb07d7 Fix yet another bug in recvResearchStatus.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3386 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 16:14:55 +00:00
Giel van Schijndel d135ff55a0 * Update the raw Makefile config.mk template
* Don't comment out the defaults as they're quite sane
  * Use C:/devpkg as the default DEVDIR
  * Add a comment above the stuff that's only needed for distributors

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3385 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 16:10:08 +00:00
Per Inge Mathisen 9c032e04ac Fix a basic mistake in the converter, and make texture filenames lowercase.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3384 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 15:29:27 +00:00
Roman C ecf36d44ad More balance changes:
-this one mainly touches Ripple Rockets (more damage), BB (more damage), Mortars (more damage) and Assault Guns (less powerful)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3383 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 15:28:24 +00:00
Per Inge Mathisen 2455f1ee4d A basic 3DS -> PIE format converter. Currently handles a single, textured
triangle mesh only.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3382 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 14:56:44 +00:00
Freddie Witherden d6e85ff038 Fix some dodgy prototypes in multirecv.h () => (void).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3381 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 14:27:46 +00:00
Per Inge Mathisen 441f4038e4 Replace a ton of custom texture clipping code with a single call to OpenGL scissor test.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3380 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 14:05:13 +00:00
Giel van Schijndel 720fc7fcec * Bump debian pkg version number
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3379 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-06 13:16:36 +00:00