From 9591db5a35ff15c0950eb692625d297faefd0646 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 14 Apr 2014 05:56:23 +0200
Subject: [PATCH] Server: Explain in map_object_actions.h why MapObjAct.id must
 not be 0.

---
 TODO                            | 2 --
 src/server/map_object_actions.h | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

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 */
-- 
2.30.2