From: Christian Heller Date: Mon, 14 Apr 2014 03:56:23 +0000 (+0200) Subject: Server: Explain in map_object_actions.h why MapObjAct.id must not be 0. X-Git-Tag: tce~768 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/%27%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28escapeHTML%28span%5B2%5D%29%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28%27?a=commitdiff_plain;h=9591db5a35ff15c0950eb692625d297faefd0646;p=plomrogue Server: Explain in map_object_actions.h why MapObjAct.id must not be 0. --- diff --git a/TODO b/TODO index e80f6d7..640bbf9 100644 --- a/TODO +++ b/TODO @@ -18,8 +18,6 @@ SERVER: - for game continuation, replace re-playing of whole record files with loading game state snapshots / save files -- why does an MapObjAct id of 0 fail? - CLIENT: - enable toggling of window borders diff --git a/src/server/map_object_actions.h b/src/server/map_object_actions.h index 81a3fa6..17c4b1e 100644 --- a/src/server/map_object_actions.h +++ b/src/server/map_object_actions.h @@ -15,7 +15,7 @@ struct MapObj; struct MapObjAct { - uint8_t id; /* unique id of map object action; must be >0 */ + uint8_t id; /* identifies action in MapObj.command; therefore must be >0 */ struct MapObjAct * next; void (* func) (struct MapObj *); /* function called after .effort turns */ char * name; /* human-readable identifier */