dxx-rebirth/similar
Kp 472c492ac4 Prevent selecting secondaries with ammo==0
derhass reported that using demo content allows the user to select
non-demo weapons, which then render incorrectly.  derhass observed the
problem when the game automatically changed weapons, but affected users
can also select the missing weapon by hand.  Demo data sets non-demo
weapons to have zero ammo_usage, so a player has "enough" rounds even
when he has none.  Past releases blocked this through the dedicated
secondary_weapon_flags field.  Add an explicit check for non-zero ammo.

Reported-by: derhass <https://github.com/dxx-rebirth/dxx-rebirth/issues/165>
2015-11-19 03:23:35 +00:00
..
2d Move font allocdata pointer to grs_font 2015-11-14 18:17:21 +00:00
3d Restore inclusion of byteutil.h in similiar/3d/interp.cpp 2015-09-29 18:36:01 +00:00
arch Qualify references to primary weapons 2015-10-18 21:01:18 +00:00
editor Make some implicit uses of ptridx construction explicit 2015-11-19 03:23:34 +00:00
main Prevent selecting secondaries with ammo==0 2015-11-19 03:23:35 +00:00
misc Fix Valgrind warning in PHYSFSX init 2015-10-24 03:13:11 +00:00