Freddie Witherden
39fe5d3544
Fix an error in the recvStructureCheck function that would result in a segfault.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3301 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 21:30:44 +00:00
Dennis Schridde
3f6b52bef1
src/game.c: Minor beautification.
...
configure.ac: YY_NO_INPUT prevents Flex from defining input(), which we do not need, since we use our own YY_INPUT instead. Maybe we should use Flex's function instead?
lib/script/script_parser.y: scriptStoreVarTypes() was defined but never used.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3300 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 15:18:25 +00:00
Dennis Schridde
1afd50b629
- Turn several id = (int)ptr assignments into FIXME_CAST_ASSIGN, so places of malicious ptr-to-int casts can be easier identified. (Doesn't fix the actual problem/warning. Often uses a _tmpid.)
...
- Turn a 0xcdcdcdcd into a MSVCRTD_INVALID_MEMORY macro. This should be fixed, since it will not work without MSVC!!!
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3299 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 14:51:19 +00:00
Per Inge Mathisen
997c5bb7a1
Fix two compiler warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3297 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 12:39:34 +00:00
Freddie Witherden
d6961273f4
Clean up gfxVisible in projectile.c
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3290 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 23:07:59 +00:00
Freddie Witherden
dfdf738deb
Remove some commented-out PSX specific raycasting code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3287 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 23:02:22 +00:00
Roman C
68788df771
Make ROF weapon upgrades reduce reload time for weapons with salvo file (otherwise ROF upgrades bring no advantages for weapons with salvo file).
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3286 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 22:16:51 +00:00
Per Inge Mathisen
eecbccbfb4
Encapsulate time adjustment of value increments in the code and try to
...
document the time code better.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3282 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 18:37:20 +00:00
Giel van Schijndel
3d245df0f9
* Provide an implementation of sound_PlayStream
...
* Modify audio_PlayStream's prototype to match sound_PlayStream's implementation & prototype
* In cdspan_PlayInGameAudio use sasprintf instead of a statically sized array and snprintf
* Add some Doxygen comments
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3276 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 15:16:59 +00:00
Per Inge Mathisen
63844bf2b7
Do not repeat what was just said with a question mark behind it when
...
debug mode enabled in multiplayer.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3274 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 14:17:57 +00:00
Per Inge Mathisen
015ed6d869
Fix problem that prevented multisync from working, and remove unused
...
related game parameters. Also fix savegame incompatibility introduced
in a previous commit (will break savegames made in last few revisions).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3272 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 13:52:58 +00:00
Per Inge Mathisen
9e2c0e6f18
Clean up keybind.c
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3271 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 12:31:59 +00:00
Freddie Witherden
50506c390c
Remove the number of packets which can be sent per second in an MP game. Also tune the max bytes per second to that of a 28.8KB/s modem.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3268 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 11:07:07 +00:00
Per Inge Mathisen
cf9e866aaf
A bit of cleanup in multisync.c, sprinkle some debug log calls, and ignore packet limits for ping checks.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3267 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 11:01:22 +00:00
Giel van Schijndel
f2118ec871
* Remove cheat "no faults"
...
* Remove sound scream4.ogg (ID_SOUND_NOFAULTS) which it triggered (that's the onlything that cheat did: playing that audiofile)
* All that audiofile contained was a spoken message: "There are no faults, in the renderer, at the moment."
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3266 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 00:28:31 +00:00
Per Inge Mathisen
d8c5f7ccd3
Clean up intdisplay and fix a bug where a factory that was destroyed
...
while viewing it made the game crash.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3264 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 00:20:37 +00:00
Giel van Schijndel
c010522a0d
* Don't tell people they cannot cheat in multiplayer games when they're just popping up the ingame-menu
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3263 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 00:04:29 +00:00
Giel van Schijndel
57b35e9eac
* Rework the receiving and processing of GroupOrders
...
* Don't terminate processing of droid orders as soon as we found a single droid we don't have yet (and need to request from another player/host)
* First retrieve all droid IDs (in a stack allocated array: alloca)
* Only __then__ process these IDs;
* When we encounter a droid ID for which we don't have the droid, request it to be sent and __continue__ processing the next droids
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3262 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 23:54:47 +00:00
Per Inge Mathisen
b4ef4d4349
Add new function attribute WZ_DECL_WARN_UNUSED_RETURN and use it on IdToDroid,
...
whose return must be checked, and fix one bug already detected by it.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3260 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 21:44:14 +00:00
Per Inge Mathisen
4c239b47ac
Fix crash caused by not checking return value from IdToDroid.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3257 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 21:33:08 +00:00
Giel van Schijndel
2f50ee2495
* Fix a bug introduced in r3238 as a result of an incomplete conversion of the send/recv-DroidInfo functions
...
* Make sure to now also handle "special" droid orders (whatever a "special" order may be...)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3253 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 19:56:34 +00:00
Roman C
e7e6cffab4
Fixed an error message.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3252 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 19:46:49 +00:00
Per Inge Mathisen
02fedc9a9b
Allow droids to self-repair while in a transport without causing an assert.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3248 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 18:56:05 +00:00
Per Inge Mathisen
78cf2ce293
Fix indentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3247 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 18:55:35 +00:00
Giel van Schijndel
927aa2c39d
* Don't send packets when we're not in multiplayer mode (!bMultiPlayer)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3245 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 18:05:27 +00:00
Giel van Schijndel
b5e426a66b
* Move the send/recv-RequestDroid functions over to the new net primitives API (patch #905 by myself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3244 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 17:14:52 +00:00
Giel van Schijndel
05d14b995a
* Move the send/recv-HappyVtol functions over to the new net primitives API (patch #905 by myself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3243 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 17:13:23 +00:00
Giel van Schijndel
6d19aa6473
* Move the send/recv-GroupOrder functions over to the new net primitives API (patch #905 by myself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3242 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 17:11:39 +00:00
Giel van Schijndel
352246e652
* Move the send/recv-DroidSecondaryAll functions over to the new net primitives API (patch #905 by myself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3241 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 17:10:01 +00:00
Giel van Schijndel
204611ba6b
* Move the send/recv-DroidSecondary functions over to the new net primitives API (patch #905 by myself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3240 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 17:08:13 +00:00
Giel van Schijndel
8e1536d867
* Move the send/recv-DroidMove functions over to the new net primitives API (patch #905 by myself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3239 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 17:07:11 +00:00
Giel van Schijndel
ed2ac88c21
* Move the send/recv-DroidInfo functions over to the new net primitives API (patch #905 by myself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3238 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 17:05:15 +00:00
Giel van Schijndel
498b6c4660
* Move the send/recv-DroidEmbark functions over to the new net primitives API (patch #905 by myself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3237 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 17:02:53 +00:00
Giel van Schijndel
28f5f74aba
* Move the send/recv-DroidDisEmbark functions over to the new net primitives API (patch #905 by myself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3236 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 17:01:17 +00:00
Giel van Schijndel
7a0be7c719
* Move the send/recv-Droid functions over to the new net primitives API (patch #905 by myself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3235 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 16:59:20 +00:00
Giel van Schijndel
66e3517354
* Move the send/recv-DestroyDroid functions over to the new net primitives API (patch #905 by myself)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3234 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-30 16:57:14 +00:00
Per Inge Mathisen
8d875c28ab
Workaround for bug #10602 . When AI sends a group order for VTOLs, sometimes a
...
dead droid is references as a target. We check the order for a dead target,
and ignore it. Should fix properly later.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3231 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-29 23:07:13 +00:00
Per Inge Mathisen
5cca5e2893
Make droid experience a floating point in tagfile format, and add better
...
error reporting for user errors when they forget to update definition file.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3229 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-29 19:53:14 +00:00
Per Inge Mathisen
3550e701f6
Fix indentation and remove some dead code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3228 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-29 19:39:31 +00:00
Per Inge Mathisen
52aa90d200
Fix a few spelling errors, and add a new debug category 'multisync'.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3227 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-29 17:55:20 +00:00
Freddie Witherden
d5a506c3bb
Commit the final part of patch #901 , which deals with droid synching/checking.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3222 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-29 12:22:55 +00:00
Freddie Witherden
a21fb63b8e
Commit part four of patch #901 . This deals with structure synching.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3221 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-29 12:21:14 +00:00
Freddie Witherden
62d372c471
Commit part 3 of patch #901 , score submission is now ported over to the new API.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3220 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-29 12:18:40 +00:00
Freddie Witherden
c2c5fdb3dc
Commit the second part of patch #901 . This ports power check functions to the new netcode API.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3219 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-29 12:15:45 +00:00
Freddie Witherden
919cac4c78
Commit the first part of patch #901 . This ports the ping functions over to the new netcode.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3218 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-29 12:13:18 +00:00
Christian Ohm
6334f1d6d1
Change "Total Power Requibyte.r" back to "Total Power Required".
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3217 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-28 21:38:27 +00:00
Giel van Schijndel
851615f5db
* Don't display _("Sorry, that cheat is disabled in multiplayer games.") on the ingame console when just typing regular text
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3216 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-28 21:29:01 +00:00
Ari Johnson
47816967a7
Updated Xcode project and some endian fixes; also changed endian_*() calls
...
to expand to ((void) (x)) on little-endian systems, so that the compiler
will catch little-endian developers who forget to update the endian_*()
calls when they change the names of structure fields.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3205 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-27 23:55:34 +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