Commit graph

9 commits

Author SHA1 Message Date
John "Elwin" Edwards
172c83f254 Fix some potential problems detected by clang.
Most of these are unnecessary comparisons and functions returning the
wrong types.
2017-09-23 09:47:00 -04:00
John "Elwin" Edwards
c194ec3dc9 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.
2017-01-28 11:45:36 -05:00
John "Elwin" Edwards
67ec840c3c Don't truncate player name in savefile name or log message.
The player name is stored in whoami[], which is length 80 in most games
(1024 in rogue5).  Only the first 10 chars were used to create
file_name, because that buffer is the same length.  Increasing the size
of file_name to 256 permits using all of whoami.

The name is also no longer truncated to 20 chars when writing the log.

All games should now be able to handle 79-character names without
collisions.  Anything more would break save compatibility.
2014-03-23 21:27:14 -07:00
John "Elwin" Edwards
bbec0d0514 rogue3: make LOGFILE work with SAVEDIR 2009-11-11 02:41:47 +00:00
John "Elwin" Edwards
acb1a4fce9 More conflict. Change log to writelog. 2009-11-10 23:46:48 +00:00
John "Elwin" Edwards
70a8187173 Change logf to logfi 2009-11-10 22:48:16 +00:00
John "Elwin" Edwards
bd3b2e4e53 rogue3: add the option of logging all games to a text file 2009-11-10 22:38:46 +00:00
John "Elwin" Edwards
265ac56d38 Add -n option and system savedir functionality 2009-10-14 01:32:13 +00:00
John "Elwin" Edwards
4662bbf65b Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00