X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=score.c;fp=score.c;h=718314b0a32b2a7fb200b3d64ad0531503bf4c77;hp=1e4e5c2d4e81acdb9e9a98d3ee15aa7b52db2895;hb=0f15c9e0f35dbaeeebf74445ae641401fc631416;hpb=3001fb1dc1761502f875bb266706a311ee5ff24f diff --git a/score.c b/score.c index 1e4e5c2..718314b 100644 --- a/score.c +++ b/score.c @@ -41,8 +41,10 @@ long score(enum termination mode) continue; if (objects[i].inventory != 0) { long k = 12; - if (i == CHEST)k = 14; - if (i > CHEST)k = 16; + if (i == CHEST) + k = 14; + if (i > CHEST) + k = 16; if (game.prop[i] >= 0) score += 2; if (game.place[i] == LOC_BUILDING && game.prop[i] == 0) @@ -62,9 +64,11 @@ long score(enum termination mode) if (mode == endgame) score += 4; mxscor += 4; - if (game.dflag != 0)score += 25; + if (game.dflag != 0) + score += 25; mxscor += 25; - if (game.closng)score += 25; + if (game.closng) + score += 25; mxscor += 25; if (game.closed) { if (game.bonus == 0)