Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Dec 19, 2011
1 parent 9747ece commit 3717453
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions doomsday/plugins/jdoom/src/st_stuff.c
Expand Up @@ -975,12 +975,9 @@ void SBarReadyAmmo_Drawer(uiwidget_t* obj, int x, int y)
//const float iconAlpha = (fullscreen == 0? 1 : uiRendState->pageAlpha * cfg.statusbarCounterAlpha);
char buf[20];

if(ST_AutomapIsActive(obj->player) && cfg.automapHudDisplay == 0)
return;
if(P_MobjIsCamera(players[obj->player].plr->mo) && Get(DD_PLAYBACK))
return;
if(ammo->value == 1994)
return;
if(ST_AutomapIsActive(obj->player) && cfg.automapHudDisplay == 0) return;
if(P_MobjIsCamera(players[obj->player].plr->mo) && Get(DD_PLAYBACK)) return;
if(ammo->value == 1994) return;

dd_snprintf(buf, 20, "%i", ammo->value);

Expand Down Expand Up @@ -1066,12 +1063,9 @@ void Ammo_Drawer(uiwidget_t* obj, int x, int y)
const float textAlpha = (fullscreen == 0? 1 : uiRendState->pageAlpha * cfg.statusbarCounterAlpha);
char buf[20];

if(ST_AutomapIsActive(obj->player) && cfg.automapHudDisplay == 0)
return;
if(P_MobjIsCamera(players[obj->player].plr->mo) && Get(DD_PLAYBACK))
return;
if(ammo->value == 1994)
return;
if(ST_AutomapIsActive(obj->player) && cfg.automapHudDisplay == 0) return;
if(P_MobjIsCamera(players[obj->player].plr->mo) && Get(DD_PLAYBACK)) return;
if(ammo->value == 1994) return;

dd_snprintf(buf, 20, "%i", ammo->value);

Expand Down

0 comments on commit 3717453

Please sign in to comment.