dc08309f80
Provided in PR 12072 by Ben Collver (collver@linuxfreemail.com). Ularn is a fantasy games in which your child has contracted a strange dis- ease, and none of your home remedies seem to have any effect. You set out to find a remedy in a limited amount of time, and to collect gold along the way of course! Ularn is based on larn, and adds the concept of character classes.
63 lines
1.3 KiB
Text
63 lines
1.3 KiB
Text
$NetBSD: patch-ak,v 1.1.1.1 2001/04/27 15:27:32 agc Exp $
|
|
|
|
--- help.c.orig Fri Jun 19 13:55:30 1992
|
|
+++ help.c Sat Jan 13 21:52:16 2001
|
|
@@ -1,4 +1,5 @@
|
|
/* help.c */
|
|
+#include <unistd.h>
|
|
#include "header.h"
|
|
#include "player.h"
|
|
#include "extern.h"
|
|
@@ -14,7 +15,7 @@
|
|
*/
|
|
extern char helpfile[];
|
|
|
|
-help ()
|
|
+void help (void)
|
|
{
|
|
int i,j;
|
|
char tmbuf[128];
|
|
@@ -25,7 +26,7 @@
|
|
for (i=0; i<23; i++)
|
|
lgetl(); /* skip over intro message */
|
|
for (; j>0; j--) {
|
|
- clear();
|
|
+ ularn_clear();
|
|
for (i=0; i<23; i++) {
|
|
tmcapcnv(tmbuf,lgetl());
|
|
lprcat(tmbuf);
|
|
@@ -55,14 +56,14 @@
|
|
/*
|
|
* function to display the welcome message and background
|
|
*/
|
|
-welcome ()
|
|
+void welcome (void)
|
|
{
|
|
int i;
|
|
char tmbuf[128];/* intermediate translation buffer when not a VT100 */
|
|
|
|
if (openhelp() < 0)
|
|
return; /* open the help file */
|
|
- clear();
|
|
+ ularn_clear();
|
|
for(i=0; i<23; i++) {
|
|
tmcapcnv(tmbuf,lgetl());
|
|
lprcat(tmbuf);
|
|
@@ -74,7 +75,7 @@
|
|
/*
|
|
* function to say press return to continue and reset scroll when done
|
|
*/
|
|
-retcont ()
|
|
+void retcont (void)
|
|
{
|
|
cursor(1,24);
|
|
lprcat("Press ");
|
|
@@ -88,7 +89,7 @@
|
|
/*
|
|
* routine to open the help file and return the first character - '0'
|
|
*/
|
|
-openhelp ()
|
|
+int openhelp (void)
|
|
{
|
|
if (lopen(helpfile)<0) {
|
|
lprintf("Can't open help file \"%s\" ",helpfile);
|