home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Server: Use thing's .consumable as what's pushing up its .satiation.
[plomrogue]
/
src
/
server
/
thing_actions.c
diff --git
a/src/server/thing_actions.c
b/src/server/thing_actions.c
index 839a6e36d85eaa84644e723f576c9fa069c2cf6c..a5c78ba55027a10cb094bfaffebe43ffc8356a47 100644
(file)
--- a/
src/server/thing_actions.c
+++ b/
src/server/thing_actions.c
@@
-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;
}
}