home · contact · privacy
Server: Explain in map_object_actions.h why MapObjAct.id must not be 0.
[plomrogue] / src / server / map_object_actions.h
index 81a3fa62e5dd3de8daf0bbc9d81b8860bc0ed84e..17c4b1e3b8c80daa2e72aae089c7e2e0ac265d7c 100644 (file)
@@ -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 */