View Single Post
Old 11-10-2009, 02:55 AM   #3 (permalink)
nickdigger
EcoModding Apprentice
 
Join Date: Aug 2009
Location: terra firma
Posts: 138
Thanks: 4
Thanked 24 Times in 22 Posts
Quote:
Originally Posted by Sebastian View Post
Someone knows why fBuff has to be initialised as a global variable? I tried to define it in format(), and it messed up the display.
By making fBuff global, you don't need to pass the pointer each time you call format().

I also have a modified format() in the Code Hacks wiki, that you can play with. It might be a little tighter, I dont know. It doesnt support negative numbers, but does have leading blanks instead of zeros, and has flexible decimal places. It might not be easy to find, as it's only a small part of a huge hack.
  Reply With Quote