Go to file
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
common Use enum class for CLI_insert_mode 2015-11-19 03:23:35 +00:00
contrib Add stub __attribute_always_inline to VS2013 header 2015-10-30 02:52:57 +00:00
d1x-rebirth Simplify select_tmap 2015-10-21 02:45:44 +00:00
d2x-rebirth Make some implicit uses of ptridx construction explicit 2015-11-19 03:23:34 +00:00
Documentation Document some usage of C++11/C++14 features 2015-11-06 03:51:10 +00:00
similar Prevent selecting secondaries with ammo==0 2015-11-19 03:23:35 +00:00
.gitignore ignore XCode user data 2014-12-06 22:43:12 -08:00
COPYING.txt corrected typo in COPYING.txt (it's to its) 2014-06-06 13:18:52 +02:00
GPL-3.txt
INSTALL.markdown Add basic instructions on building Rebirth 2015-09-26 21:17:14 +00:00
SConstruct Suppress debug info for check_header_includes outputs 2015-11-17 03:31:21 +00:00