Race record
#5

hm...
pawn Код:
if(60000*m+1000*s+ms <= 60000*rm+1000*rs+rms)
...the trick is to compare all values together in 1 operation. as the minutes, seconds, and milliseconds are "somehow" related to eachother, we can bother to work in milliseconds here.
btw, the idea to "break" a record with the exact time, is just nice.
Reply


Messages In This Thread
Race record - by Msk. - 30.03.2013, 13:31
Re: Race record - by RajatPawar - 30.03.2013, 13:52
AW: Re: Race record - by Nero_3D - 30.03.2013, 14:11
Re: Race record - by RajatPawar - 30.03.2013, 14:12
Re: Race record - by Babul - 30.03.2013, 14:57
Re: Race record - by RajatPawar - 30.03.2013, 15:05
Re: Race record - by Msk. - 30.03.2013, 15:11

Forum Jump:


Users browsing this thread: 2 Guest(s)