mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
copy in from cvs; cvs2svn fucked up big time
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@9775 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
30
sail/pl_6.c
30
sail/pl_6.c
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pl_6.c,v 1.4 1997/10/13 19:45:33 christos Exp $ */
|
||||
/* $NetBSD: pl_6.c,v 1.10 2001/02/05 01:10:11 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@@ -38,14 +38,18 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)pl_6.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: pl_6.c,v 1.4 1997/10/13 19:45:33 christos Exp $");
|
||||
__RCSID("$NetBSD: pl_6.c,v 1.10 2001/02/05 01:10:11 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
#include <signal.h>
|
||||
#include "extern.h"
|
||||
#include "player.h"
|
||||
|
||||
static int turned(void);
|
||||
|
||||
void
|
||||
repair()
|
||||
repair(void)
|
||||
{
|
||||
char c;
|
||||
char *repairs;
|
||||
@@ -81,7 +85,7 @@ repair()
|
||||
int max = ptr->guns/4;
|
||||
if (ptr->hull < max) {
|
||||
FIX(hull, max);
|
||||
Write(W_HULL, ms, 0, ptr->hull, 0, 0, 0);
|
||||
Write(W_HULL, ms, ptr->hull, 0, 0, 0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -90,14 +94,14 @@ repair()
|
||||
int max = ptr->guns/5 - ptr->carL;
|
||||
if (ptr->gunL < max) {
|
||||
FIX(gunL, max);
|
||||
Write(W_GUNL, ms, 0, ptr->gunL,
|
||||
Write(W_GUNL, ms, ptr->gunL,
|
||||
ptr->carL, 0, 0);
|
||||
}
|
||||
} else {
|
||||
int max = ptr->guns/5 - ptr->carR;
|
||||
if (ptr->gunR < max) {
|
||||
FIX(gunR, max);
|
||||
Write(W_GUNR, ms, 0, ptr->gunR,
|
||||
Write(W_GUNR, ms, ptr->gunR,
|
||||
ptr->carR, 0, 0);
|
||||
}
|
||||
}
|
||||
@@ -106,19 +110,19 @@ repair()
|
||||
#define X 2
|
||||
if (ptr->rig4 >= 0 && ptr->rig4 < X) {
|
||||
FIX(rig4, X);
|
||||
Write(W_RIG4, ms, 0, ptr->rig4, 0, 0, 0);
|
||||
Write(W_RIG4, ms, ptr->rig4, 0, 0, 0);
|
||||
}
|
||||
if (count && ptr->rig3 < X) {
|
||||
FIX(rig3, X);
|
||||
Write(W_RIG3, ms, 0, ptr->rig3, 0, 0, 0);
|
||||
Write(W_RIG3, ms, ptr->rig3, 0, 0, 0);
|
||||
}
|
||||
if (count && ptr->rig2 < X) {
|
||||
FIX(rig2, X);
|
||||
Write(W_RIG2, ms, 0, ptr->rig2, 0, 0, 0);
|
||||
Write(W_RIG2, ms, ptr->rig2, 0, 0, 0);
|
||||
}
|
||||
if (count && ptr->rig1 < X) {
|
||||
FIX(rig1, X);
|
||||
Write(W_RIG1, ms, 0, ptr->rig1, 0, 0, 0);
|
||||
Write(W_RIG1, ms, ptr->rig1, 0, 0, 0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -138,8 +142,8 @@ repair()
|
||||
repaired = 1;
|
||||
}
|
||||
|
||||
int
|
||||
turned()
|
||||
static int
|
||||
turned(void)
|
||||
{
|
||||
char *p;
|
||||
|
||||
@@ -150,7 +154,7 @@ turned()
|
||||
}
|
||||
|
||||
void
|
||||
loadplayer()
|
||||
loadplayer(void)
|
||||
{
|
||||
char c;
|
||||
int loadL, loadR, ready, load;
|
||||
|
||||
Reference in New Issue
Block a user