diff options
author | rodri <rgl@antares-labs.eu> | 2023-05-05 22:35:14 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-05-05 22:35:14 +0000 |
commit | d2c0ab7a62b7a2c99c4c491ce55466859429571b (patch) | |
tree | 5010f2e6b2e3a87486a7f65dd73f40eee7fec04c /dat.h | |
parent | f959555dc653ecf54d75b180fcd018075e652e93 (diff) | |
download | musw-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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, |