mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
973deb3116
PR: 3999 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
75 lines
1.6 KiB
Plaintext
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
|
|
{
|