X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/462fca95471224f85b85be911e72faee16cd1597..22a24570583a0eb123a58716d93fd04a4f90a121:/trek/lose.c diff --git a/trek/lose.c b/trek/lose.c index c3d846f9..7dcf9ce4 100644 --- a/trek/lose.c +++ b/trek/lose.c @@ -1,6 +1,8 @@ +/* $NetBSD: lose.c,v 1.5 1999/07/21 13:19:11 hubertf Exp $ */ + /* - * Copyright (c) 1980 Regents of the University of California. - * All rights reserved. + * Copyright (c) 1980, 1993 + * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -31,13 +33,20 @@ * SUCH DAMAGE. */ +#include #ifndef lint -/*static char sccsid[] = "from: @(#)lose.c 5.6 (Berkeley) 6/26/90";*/ -static char rcsid[] = "$Id: lose.c,v 1.2 1993/08/01 18:50:21 mycroft Exp $"; +#if 0 +static char sccsid[] = "@(#)lose.c 8.1 (Berkeley) 5/31/93"; +#else +__RCSID("$NetBSD: lose.c,v 1.5 1999/07/21 13:19:11 hubertf Exp $"); +#endif #endif /* not lint */ -# include "trek.h" -# include +#include +#include +#include +#include "trek.h" +#include "getpar.h" /* ** PRINT OUT LOSER MESSAGES @@ -47,7 +56,7 @@ static char rcsid[] = "$Id: lose.c,v 1.2 1993/08/01 18:50:21 mycroft Exp $"; ** actions which need be taken are taken. */ -char *Losemsg[] = +const char *const Losemsg[] = { "You ran out of time", "You ran out of energy", @@ -64,6 +73,7 @@ char *Losemsg[] = "Your last crew member died", }; +void lose(why) int why; {