1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/games/galaxis/files/patch-ab
Thomas Gellekum 973deb3116 Bugfix for the game.
PR:		3999
Submitted by:	Andrey Zakhvatov <andy@icc.surw.chel.su>
1997-07-01 07:12:54 +00:00

75 lines
1.6 KiB
Plaintext

*** 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
{