From c5e803ee257a3f4207779975f00a5b8818ef8263 Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 28 Sep 2005 01:45:26 +0000 Subject: Development checkin --- game.bmx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'game.bmx') diff --git a/game.bmx b/game.bmx index 8c66ef8..c11fbc3 100644 --- a/game.bmx +++ b/game.bmx @@ -142,7 +142,13 @@ Type TGame EndIf EndIf - Local percent:Int=Int(Float(captured)/Float(num)*100.0) + Local percent:Int + + If done<>LEVEL_NOTOVER + percent=final_percent + Else + percent:Int=Int(Float(captured)/Float(num)*100.0) + EndIf If (timer=0 Or num=captured+lost) And done=LEVEL_NOTOVER final_percent=percent @@ -157,10 +163,11 @@ Type TGame GameGFX.font.DrawColoured(num-captured-lost,txtoff[0]+10,0,255,255,0) GameGFX.font.Draw("CAPTURED",200,0) - If done=LEVEL_NOTOVER - GameGFX.font.DrawColoured(percent+"%",txtoff[1]+210,0,255,0,255) + + If percent