]> git.lizzy.rs Git - dungeon_game.git/blobdiff - plugins/game/game.h
Only use entity color if use_color = true
[dungeon_game.git] / plugins / game / game.h
index 11d39ba3107e885c5f1bd1637b9d6a8182a633ae..cdca0b4e6eb12cb44aa06ba60933aba5d29b4a43 100644 (file)
@@ -36,10 +36,11 @@ struct entity_step_data
 
 struct entity
 {
-       const char *name;
+       char *name;
        int x, y;
        struct color color;
-       const char *texture;
+       bool use_color;
+       char *texture;
        bool remove;
        void *meta;
        int health;