| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Add a note to reflect the fact that this isn't fully portable yet.
|
| |
|
|
|
|
|
| |
Fixes a crash when running "rogue -s". This bug was introduced in
794d1c58ce6e7f1093a6fecb847aa913fad080bc, where I accidentally removed
the conditional that ensured new scores were only added to the list if
the global variable score_only was false.
|
| |
|
|
|
| |
Switched to strlcpy() and strlcat(). Fixes a compiler warning
on OpenBSD.
|
| |
|
|
| |
Added a macro copied from tmux.h in OpenBSD's tmux source code.
|
| |
|
|
|
| |
This excludes version-control-related macros that cause compilation
errors on OpenBSD.
|
| |
|
|
|
| |
POSIX basename (and OpenBSD's implementation) only accepts a single
pathname argument, not a list.
|
| | |
|
| |
|
|
|
| |
This just builds a local copy of the document that can be viewed with
"less -R".
|
| | |
|
| | |
|
| |
|
|
| |
This fixes warnings about implicit conversions from chtype to char.
|
| | |
|
| |
|
|
|
|
| |
Reformatted makefile, removed unneeded macros, made makefile adhere to
POSIX standard, and added compiler standard, optimization, and warning
flags.
|
| |
|
|
|
| |
Removed username column and changed header to reflect the fact that all
scores come from a single user.
|
| |
|
|
|
|
|
|
|
|
|
| |
An error in the score file parsing code caused a space to be prepended
to the "death" string, which in turn caused each score record's death
string to be indented by one additional space each time the file was
written.
This bug appears to be present in the upstream project; reproducing it
there would require populating the score file with scores from at least
two users.
|
| |
|
|
|
| |
The original multi-user design only permitted each user to occupy
a single spot in the high-score table.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
BSD games are traditionally designed for multiuser systems and thus
write their data to /var/games, using setgid to prevent tampering.
Switch to a single-user design, writing the score file to the user's
home directory. $XDG_DATA_HOME/rogue will will be used if $XDG_DATA_HOME
is defined. Otherwise, data will be written to a $HOME/.rogue directory.
This also improves the makefile by making header files a dependency of
objects.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Randomization code that swaps two string values using strlcpy(3)
during initialization frequently selected the same string as both the
source and the destination. This is supported on NetBSD but results in
undefined behavior on other BSD-derived systems. As a result, the
program usually crashed during startup during testing on macOS. Fix it
by ensuring that the two random values differ.
|
| |
|
|
|
|
| |
A cursory look at rogue.h indicates that some parts of the file were
composed with eight-character tabs and some were created with
four-character tabs. Use eight in accordance with tradition.
|
| | |
|
| | |
|
|
|
Imported games/rogue from NetBSD src Git mirror trunk branch. HISTORY
is the git log output for this directory; everything else is an
unmodified copy of the NetBSD source.
|