X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=score.c;h=d3eeb0aa7848d9d448a5460eea09c05acb6dbc41;hp=8e37374591b165bd7787be8245aecdd58f2255f3;hb=eebc87f889b0fa1404684aa6e72dda5a5e53d96b;hpb=8fe07c8bf36b1c06e8cf8689c04629df0fe51504 diff --git a/score.c b/score.c index 8e37374..d3eeb0a 100644 --- a/score.c +++ b/score.c @@ -48,9 +48,9 @@ int score(enum termination mode) k = 14; if (i > CHEST) k = 16; - if (game.prop[i] > STATE_NOTFOUND) + if (game.objects[i].prop > STATE_NOTFOUND) score += 2; - if (game.place[i] == LOC_BUILDING && game.prop[i] == STATE_FOUND) + if (game.objects[i].place == LOC_BUILDING && game.objects[i].prop == STATE_FOUND) score += k - 2; mxscor += k; } @@ -86,7 +86,7 @@ int score(enum termination mode) mxscor += 45; /* Did he come to Witt's End as he should? */ - if (game.place[MAGAZINE] == LOC_WITTSEND) + if (game.objects[MAGAZINE].place == LOC_WITTSEND) score += 1; mxscor += 1;