X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=score.c;h=d0915b28887aedf3e832785daf86b7513fdb68bf;hp=ef80e68df7c8a4c0c4b4ec16c33b409d996c2ec9;hb=14fee6b979b9803e8d499f19c4cd1e0373665155;hpb=2deb1b9f7ff8e8e2a1b96fb28344100860b50897 diff --git a/score.c b/score.c index ef80e68..d0915b2 100644 --- a/score.c +++ b/score.c @@ -7,7 +7,8 @@ */ void score(long MODE) { - /* <0 if scoring, >0 if quitting, =0 if died or won */ +/* arg is <0 if scoring, >0 if quitting, =0 if died or won */ + long MXSCOR = 0; /* The present scoring algorithm is as follows: * Objective: Points: Present total possible: @@ -88,7 +89,12 @@ L20020: MXSCOR=MXSCOR+45; /* Return to score command if that's where we came from. */ - if(MODE < 0) return; + if(MODE < 0) { + SETPRM(1,SCORE,MXSCOR); + SETPRM(3,game.turns,game.turns); + RSPEAK(259); + return; + } /* that should be good enough. Let's tell him all about it. */