mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 03:52:12 -04:00
inline w_ready.num initialization
This commit is contained in:
parent
754cae1e3d
commit
ddf5a034d1
@ -1215,16 +1215,15 @@ void ST_createWidgets(void)
|
||||
ST_AMMOX - distributed_delta,
|
||||
ST_AMMOY,
|
||||
tallnum,
|
||||
&plyr->ammo[weaponinfo[plyr->readyweapon].ammo],
|
||||
weaponinfo[plyr->readyweapon].ammo != am_noammo ?
|
||||
&plyr->ammo[weaponinfo[plyr->readyweapon].ammo] :
|
||||
&largeammo,
|
||||
&st_statusbaron,
|
||||
ST_AMMOWIDTH );
|
||||
|
||||
// the last weapon type
|
||||
w_ready.data = plyr->readyweapon;
|
||||
|
||||
if (weaponinfo[plyr->readyweapon].ammo == am_noammo)
|
||||
w_ready.num = &largeammo;
|
||||
|
||||
// health percentage
|
||||
STlib_initPercent(&w_health,
|
||||
ST_HEALTHX - distributed_delta,
|
||||
|
Loading…
x
Reference in New Issue
Block a user