home · contact · privacy
Server: Use thing's .consumable as what's pushing up its .satiation.
[plomrogue] / src / server / thing_actions.c
index 839a6e36d85eaa84644e723f576c9fa069c2cf6c..a5c78ba55027a10cb094bfaffebe43ffc8356a47 100644 (file)
@@ -317,6 +317,8 @@ extern void actor_use(struct Thing * t)
             {
                 t->owns = next;
             }
+            t->satiation = t->satiation + tt->consumable > INT16_MAX ?
+                           INT16_MAX : t->satiation + tt->consumable;
             t->lifepoints = t->lifepoints + tt->consumable;
         }
     }