| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
1) Don't put two pits in the same room.
2) Don't put bats and pits in the same room. (you will never hit the bat)
3) Don't start the player in a room with a pit or bad, if possible. Some
caves are so crowded the loop may go on forever, so we give up after 100
tries to put them in a safe location (as long as it's not with the wumpus).
4) Make the manpage reflect reality WRT the default number of rooms.
Bug #3 pointed out by salo.
|
|
|
|
|
|
| |
games in a row. Also modify change made in rev 1.18 to work correctly.
take_action() returns 1 if the player dies, causing the game to allways
exit after any death, now the game correctly asks if the player would
like to play again.
|
|
|
|
| |
print ``Care to play another game? (y-n)'' (but then exit anyway without
waiting for an answer).
|
|
|
| |
Reviewed by <hubertf>.
|
| |
|
|
|
| |
Patches provided by Joel Baker in PR 22269, verified by myself.
|
|
|
| |
on bug report and patch from <afghan@afghanhound.org.uk>.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Games which run setgid from dm, but don't need to, should drop their
privileges at startup.
Games which have a scorefile should open it at startup, then drop all
privileges leaving just the open writable file descriptor. If the
game can invoke subprocesses, this should be made close-on-exec.
Games with scorefiles should make sure they do not get a file
descriptor < 3. (Otherwise, they could get confused and corrupt the
scorefile when using stdin, stdout or stderr.)
Some old setuid revokes from the days of setuid games change into gid
revokes.
|
| |
|
|
|
| |
are used.
|
|
|
| |
Submitted in 7994 by Joseph Myers <jsm28@cam.ac.uk>
|
|
|
| |
via stdin, per PR 6699 by Joseph Myers <jsm28@cam.ac.uk>
|
| |
|
| |
|
| |
|
|
|
|
| |
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
|
| |
|
| |
|
|
|