Squishing string-related bugs in Bomb display and Weapon reordering
This commit is contained in:
parent
88f0fdc562
commit
37b4803493
|
@ -1,5 +1,9 @@
|
||||||
D1X-Rebirth Changelog
|
D1X-Rebirth Changelog
|
||||||
|
|
||||||
|
20091201
|
||||||
|
--------
|
||||||
|
main/gauges.c: Squishing string-related bugs in Bomb display and Weapon reordering
|
||||||
|
|
||||||
20091130
|
20091130
|
||||||
--------
|
--------
|
||||||
d1x-rebirth/arch/carbon/conf.h, d1x-rebirth.xcodeproj/project.pbxproj: Update to not compile redundant net_ipx.c for Mac OS X
|
d1x-rebirth/arch/carbon/conf.h, d1x-rebirth.xcodeproj/project.pbxproj: Update to not compile redundant net_ipx.c for Mac OS X
|
||||||
|
|
|
@ -979,9 +979,9 @@ void show_bomb_count(int x,int y,int bg_color,int always_show,int right_align)
|
||||||
bomb = PROXIMITY_INDEX;
|
bomb = PROXIMITY_INDEX;
|
||||||
count = Players[Player_num].secondary_ammo[bomb];
|
count = Players[Player_num].secondary_ammo[bomb];
|
||||||
|
|
||||||
#ifndef RELEASE
|
// #ifndef RELEASE
|
||||||
count = min(count,99); //only have room for 2 digits - cheating give 200
|
count = min(count,99); //only have room for 2 digits - cheating give 200
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
countx = (bomb==PROXIMITY_INDEX)?count:-count;
|
countx = (bomb==PROXIMITY_INDEX)?count:-count;
|
||||||
|
|
||||||
|
@ -993,7 +993,7 @@ void show_bomb_count(int x,int y,int bg_color,int always_show,int right_align)
|
||||||
else
|
else
|
||||||
gr_set_fontcolor(bg_color,bg_color); //erase by drawing in background color
|
gr_set_fontcolor(bg_color,bg_color); //erase by drawing in background color
|
||||||
|
|
||||||
sprintf(txt,"B:%02d",count);
|
snprintf(txt, sizeof(txt), "B:%02d", count);
|
||||||
|
|
||||||
while ((t=strchr(txt,'1')) != NULL)
|
while ((t=strchr(txt,'1')) != NULL)
|
||||||
*t = '\x84'; //convert to wide '1'
|
*t = '\x84'; //convert to wide '1'
|
||||||
|
|
Loading…
Reference in a new issue