aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-05-05 22:35:14 +0000
committerrodri <rgl@antares-labs.eu>2023-05-05 22:35:14 +0000
commitd2c0ab7a62b7a2c99c4c491ce55466859429571b (patch)
tree5010f2e6b2e3a87486a7f65dd73f40eee7fec04c /dat.h
parentf959555dc653ecf54d75b180fcd018075e652e93 (diff)
downloadmusw-d2c0ab7a62b7a2c99c4c491ce55466859429571b.tar.gz
musw-d2c0ab7a62b7a2c99c4c491ce55466859429571b.tar.bz2
musw-d2c0ab7a62b7a2c99c4c491ce55466859429571b.zip
handle player quits gracefully.
also fixed a bug whereby a player would never be freed if no party was happening, and another one where deleting a player from the player queue would cause a nil pointer deref.
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dat.h b/dat.h
index 3e8e703..88f7a64 100644
--- a/dat.h
+++ b/dat.h
@@ -32,11 +32,13 @@ enum {
NShi, /* S accepts. sends P and G for DHX */
NCdhx = 12, /* C shares pubkey */
NSdhx, /* S shares pubkey */
- NCnudge = 16,
+ NCnudge = 16, /* nudge ACK */
NSnudge, /* check the pulse of the line */
NCinput = 20, /* C sends player input state */
NSsimstate, /* S sends current simulation state */
+ NCawol = 22, /* AWOL ACK */
+ NSawol, /* notify the adversary flew away */
NCbuhbye = 30,
NSbuhbye,