Commit Graph

8 Commits

Author SHA1 Message Date
Kevin Shanahan
50be9c0f3c net: more clearly label the FitzQuake network constants
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-01-17 17:22:48 +10:30
Kevin Shanahan
6e6f63889a client: implement enough of FitzQuake protocol for demo playback
Still need to implement the server side and the changes for outgoing
client commands, but this is enough that I can playback demos recorded
with protocol 666.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-01-14 19:41:26 +10:30
Kevin Shanahan
05ee56fc9c protocol: Add support for BJP version 1, 2 & 3 protocols
Now pull together all that previous work and enable the BJP
protocols. Each uses a different combination of bytes/shorts for
models, static and dymanic sounds.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-02-12 21:09:17 +10:30
Kevin Shanahan
0f696b3a58 protocol: Make MAX_SOUNDS protocol dependent
Similar to MAX_MODELS, although I'm not 100% confident about static
vs. dynamic sounds in this case.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-02-12 21:08:46 +10:30
Kevin Shanahan
244e96dcb6 protocol: Make MAX_MODELS protocol dependent
Create a wrapper max_models() so we can take the current connection's
protocol number into account when checking for model overflow.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-02-12 21:08:27 +10:30
Kevin Shanahan
76d7ba22cb protocol: wrap protocol version checks
So we can add other accepted protocols later

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-01-15 18:22:17 +10:30
Kevin Shanahan
e8ddb81c05 protocol: Rename PROTOCOL_VERSION to PROTOCOL_VERSION_NQ
...in preparation for introduction of handling for multiple protocol
versions.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-01-15 18:06:18 +10:30
Tyrann
130e22195a Import v0.47 sources 2006-09-10 19:02:51 +09:30