home · contact · privacy
Server/C: In actor_use(), don't directly add nutrition to lifepoints.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 8 Mar 2015 16:11:44 +0000 (17:11 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 8 Mar 2015 16:11:44 +0000 (17:11 +0100)
src/server/thing_actions.c

index c9e8ddb30642d421f824487388a1f1fa75cbe5d0..6a8803d162483a6a3ac06c2fe46dfc05420be31d 100644 (file)
@@ -324,7 +324,6 @@ extern void actor_use(struct Thing * t)
             }
             t->satiation = t->satiation + tt->consumable > INT16_MAX ?
                            INT16_MAX : t->satiation + tt->consumable;
-            t->lifepoints = t->lifepoints + tt->consumable;
         }
     }
     if (t == get_player())