diff rogue3/rogue.h @ 251:e7862a021609

Fix the perpetual haste cheat. Rogue V3 allowed the player to gain perpetual haste by quaffing a potion of haste while already hasted. This is supposed to remove the haste effect and cause temporary paralysis. Super-Rogue removed haste correctly, but gave confusing messages.
author John "Elwin" Edwards
date Sat, 28 Jan 2017 11:45:36 -0500
parents ee250e3646fd
children 17005af49963
line wrap: on
line diff
--- a/rogue3/rogue.h	Wed Jul 20 20:44:41 2016 -0400
+++ b/rogue3/rogue.h	Sat Jan 28 11:45:36 2017 -0500
@@ -511,7 +511,7 @@
 void                    _free_list(struct linked_list **ptr);
 char *                  _new(size_t size);
 int                     add_dam(str_t *str);
-void                    add_haste(int potion);
+bool                    add_haste(int potion);
 void                    add_pack(struct linked_list *item, int silent);
 void                    add_pass(void);
 void                    addmsg(char *fmt, ...);