diff options
author | Darkvater <darkvater@openttd.org> | 2006-04-22 13:56:16 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-04-22 13:56:16 +0000 |
commit | 5a8d992eaad001fc73d5b14a389ece7e4d95897e (patch) | |
tree | f8cd633aad6536932155068f74bc9f8e1a346ebb /newgrf_text.c | |
parent | db377b973871e8f270a3dd5ba723ed6a7eea8ec5 (diff) | |
download | openttd-5a8d992eaad001fc73d5b14a389ece7e4d95897e.tar.xz |
(svn r4529) - Codechange: Use proper naming for hex numbers in debug prints eg. 0xF3A6. Use fixed lengths where applicable (newgrf). Unfortunately '%#X' is unusable since it gives 0XFF3 and '%#x' gives 0xff3 while we want 0xFF3 :P
Diffstat (limited to 'newgrf_text.c')
-rw-r--r-- | newgrf_text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_text.c b/newgrf_text.c index c3250fc4c..5dc322492 100644 --- a/newgrf_text.c +++ b/newgrf_text.c @@ -174,7 +174,7 @@ StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid_to_add, const c textptr->next = newtext; } - DEBUG(grf, 2)("Added %x: grfid %x string %x lang %x string %s", id, grfid, stringid, newtext->langid, newtext->text); + DEBUG(grf, 2)("Added 0x%X: grfid 0x%X string 0x%X lang 0x%X string %s", id, grfid, stringid, newtext->langid, newtext->text); return (GRFTAB << TABSIZE) + id; } |