View Single Post
  #29  
Old 12-31-2004, 03:10 AM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by Python523
Must I point out the obvious.

According to your post, a%b = a - int(a/b)*b

so if I translate Evil_Trunks's variation of your script
NPC Code:

this.hours = int(this.temp/(60*60));
this.mins = int((this.temp/60)%60);
this.secs = int((this.temp)%60);


to
NPC Code:

this.hours = int(this.temp/(60*60));
this.mins = int(this.temp/60 - int(this.temp/60^2)*60);
this.secs = int(this.temp - int(this.temp/60)*60);




You tell me what looks more efficient. Mine or yours.
ah i see what you mean now you lost me for a second, yes your its better in that sence , mines better on cpu load
__________________

Reply With Quote