|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T d
Length: 726 (0x2d6)
Types: TextFile
Names: »detect_mv.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Galaxy/src/detect_mv.c«
/*
* %W% (mrdch&amnnon) %G%
*/
# include "header"
detectmv (s)
char *s;
{
planet * pp;
int i;
pp = getpl (s); /* get planet id */
assert_player (pp); /* see if legal planet + owner */
skipwhite (s); /* go to the money part */
i = atoi (s); /* take the amount */
assert_money (i); /* see if there is enough of it */
skipword (s); /* skip that no. */
assert_end (s); /* does it end good?? */
pp -> detect += i; /* raise the DETECT */
teller[player] -= i; /* take his money */
}