Mercurial > hg > early-roguelike
view rogue5/rogue.6.in @ 114:a5433ba4cabf
arogue5: fix some daemon-related pointer/int casting.
Daemons and fuses take a single argument, nominally an int but either
ignored or unsafely cast to a pointer. Its type has now been changed
to void*.
The save/restore code no longer tries to store this argument in the
savefile. For doctor(), this is not a problem, because player is the
only argument it is ever given as a daemon. However, alchemy() will
fail to do anything when passed NULL. Fixing this would be complicated
but possible.
Summary: the code is slightly safer, but alchemy jugs are guaranteed to
stop working after save and restore, instead of just extremely likely.
author | John "Elwin" Edwards |
---|---|
date | Fri, 28 Mar 2014 10:57:03 -0700 |
parents | f502bf60e6e4 |
children |
line wrap: on
line source
.\" .\" @(#)rogue.6 6.2 (Berkeley) 5/6/86 .\" .\" Rogue: Exploring the Dungeons of Doom .\" Copyright (C) 1980-1983, 1985, 1986 Michael Toy, Ken Arnold and Glenn Wichman .\" All rights reserved. .\" .\" See the file LICENSE.TXT for full copyright and licensing information. .\" .TH ROGUE 6 "May 6, 1986" .UC 4 .SH NAME rogue \- Exploring The Dungeons of Doom .SH SYNOPSIS .B @PROGRAM@ [ .B \-r ] [ .I save_file ] [ .B \-s ] [ .B \-d ] .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's 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 heroes. .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 a list 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 If .I save_file is specified, rogue will be restored from the specified saved game file. If the .B \-r option is used, the save game file is presumed to be the default. .PP The .B \-s option will print out the list of scores. .PP The .B \-d option will kill you and try to add you to the score file. .PP For more detailed directions, read the document .I "A Guide to the Dungeons of Doom." .SH AUTHORS Michael C. Toy, Kenneth C. R. C. Arnold, Glenn Wichman .SH FILES .DT .ta \w'@SCOREFILE@\ \ \ 'u @SCOREFILE@ Score file .br \fB~\fP/rogue.save Default save file .SH SEE ALSO Michael C. Toy and Kenneth C. R. C. Arnold, .I "A guide to the Dungeons of Doom" .SH BUGS .PP Probably infinite (although countably infinite). However, that Ice Monsters sometimes transfix you permanently is .I not a bug. It's a feature.