X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.c;h=53591da17281677dfa09162c960d86ad97869f33;hb=aba35733e76f78f22aee3a3d7f677c39bd32e90d;hp=5eebcd02a3bfa3d72bd5b11222a20ee80163b927;hpb=f01cb89a76fd0df79b2356b0e81e137113c9e777;p=open-adventure.git diff --git a/main.c b/main.c index 5eebcd0..53591da 100644 --- a/main.c +++ b/main.c @@ -36,7 +36,7 @@ lcg_state lcgstate; extern void initialise(); extern void score(long); -extern int action(FILE *, long); +extern int action(FILE *, long, long); void sig_handler(int signo) { @@ -474,7 +474,7 @@ L4000: I=4000; goto Laction; L4090: I=4090; goto Laction; L5000: I=5000; Laction: - switch (action(cmdin, I)) { + switch (action(cmdin, I, OBJ)) { case 2: return true; case 8: goto L8; case 2000: goto L2000;