home · contact · privacy
Added a forgotten free().
[plomrogue] / src / map_objects.h
index 015864812c03bc6241499e3c8bf14720b1dd340c..4804033d1002fe17499242046fdd5ff804d12f30 100644 (file)
@@ -68,6 +68,7 @@ struct ItemDef
 struct MonsterDef
 {
     struct MapObjDef map_obj_def;
+    uint8_t corpse_id;       /* ID of object type killed monster changes to. */
     uint8_t hitpoints_start; /* Hitpoints each monster starts with. */
 };
 
@@ -91,7 +92,8 @@ extern void * build_map_objects(struct World * world, void * start, char def_id,
  */
 extern uint8_t write_map_objects(struct World * world, void * start,
                                  FILE * file);
-extern uint8_t read_map_objects(struct World * world, void * start, FILE * file);
+extern uint8_t read_map_objects(struct World * world, void * start,
+                                FILE * file);