view rogue4/rogue.6.in @ 280:70aa5808c782

Fix potential segfaults at restore related to ctime(). In some games, restore() passes the result of ctime() to mvprintw() or some other variadic message-formatting function. If ctime() has not been declared properly, its return type is inferred to be int instead of char *. This does not cause a warning because the compiler does not know the correct type of variadic arguments. On platforms where ints and pointers are not the same size, this can, probably depending on alignment, result in a segfault that is not easy to trace. Including time.h fixes the problem. Some games manually declared ctime() and avoided the bug. These declarations have also been replaced with the include.
author John "Elwin" Edwards
date Fri, 15 Sep 2017 20:51:10 -0400
parents 0e99eade579c
children
line wrap: on
line source

.TH ROGUE 6 "1 April 1981"
.UC 4
.SH NAME
rogue \- Exploring The Dungeons of Doom
.SH SYNOPSIS
.B @PROGRAM@
[
.I save_file
]
.SH DESCRIPTION
.PP
.I Rogue
is a computer fantasy game with a new twist.  It is crt oriented and the
object of the game is to survive the attacks of various monsters and get
a lot of gold, rather than the puzzle solving orientation of most computer
fantasy games.
.PP
To get started you really only need to know two commands.  The command
.B ?
will give you a list of the available commands and the command
.B /
will identify the things you see on the screen.
.PP
To win the game (as opposed to merely playing to beat other people high
scores) you must locate the Amulet of Yendor which is somewhere below
the 20th level of the dungeon and get it out.  Nobody has achieved this
yet and if somebody does, they will probably go down in history as a hero
among heros.
.PP
When the game ends, either by your death, when you quit, or if you (by
some miracle) manage to win,
.I rogue
will give you alist of the top-ten scorers.  The scoring is based entirely
upon how much gold you get.  There is a 10% penalty for getting yourself
killed.
.PP
For more detailed directions, read the document
.I "A Guide to the Dungeons of Doom."
.SH FILES
.DT
.B Score file is searched for in these directories:
.PP
$ROGUEHOME/rogue52.scr
.br
/var/games/roguelike/rogue52.scr
.br
/var/lib/roguelike/rogue52.scr
.br
/var/roguelike/rogue52.scr
.br
/usr/games/lib/rogue52.scr
.br
/games/roguelik/rogue52.scr
.br
rogue52.scr
.PP
.B Default save file
.PP
~/rogue.sav
.SH SEE ALSO
Michael C. Toy,
.I "A guide to the Dungeons of Doom"
.SH BUGS
.PP
Probably infinite.  Currently known bugs are: Sometimes you are still hungry
even after you eat food and sometimes you get a monster on the screen in
reverse video which may or may not cause a core dump.