1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/games/galaxis/files/patch-ab

75 lines
1.6 KiB
Plaintext
Raw Normal View History

*** galaxis.c Wed Sep 20 17:16:33 1995
--- /home/andy/tmp/wrk/galaxis.c Tue Jul 1 06:54:10 1997
***************
*** 8,14 ****
#include <stdio.h>
#include <termios.h>
! #include <curses.h>
#include <signal.h>
#include <ctype.h>
#include <assert.h>
--- 8,14 ----
#include <stdio.h>
#include <termios.h>
! #include <ncurses.h>
#include <signal.h>
#include <ctype.h>
#include <assert.h>
***************
*** 131,137 ****
(void) signal(SIGINT,outro);
(void) signal(SIGINT,outro);
! (void) signal(SIGIOT,outro); /* for assert(3) */
if(signal(SIGQUIT,SIG_IGN) != SIG_IGN)
(void)signal(SIGQUIT,outro);
--- 131,137 ----
(void) signal(SIGINT,outro);
(void) signal(SIGINT,outro);
! (void) signal(SIGABRT,outro); /* for assert(3) */
if(signal(SIGQUIT,SIG_IGN) != SIG_IGN)
(void)signal(SIGQUIT,outro);
***************
*** 540,555 ****
{
if (board[cury][curx] & S_LIFEBOAT)
{
! board[cury][curx] |= S_BOATSEEN;
! prompt("You found a lifeboat!");
! beep();
! turn++;
! boatsfound++;
! }
! else if (board[cury][curx] & S_BOATSEEN)
! {
! prompt("This lifeboat is already visible.");
! beep();
}
else
{
--- 540,558 ----
{
if (board[cury][curx] & S_LIFEBOAT)
{
! if (board[cury][curx] & S_BOATSEEN)
! {
! prompt("This lifeboat is already visible.");
! beep();
! }
! else
! {
! board[cury][curx] |= S_BOATSEEN;
! prompt("You found a lifeboat!");
! beep();
! turn++;
! boatsfound++;
! }
}
else
{