Go to file
Kp a2d03df7aa Prevent treating dying players as weapons
Function `object_create_explosion_sub` is supposed to be given a weapon
and an object on which to explode it.  However, the original game abused
`object_create_explosion_sub` by also calling it from
`object_create_badass_explosion`, which can be called from
`explode_badass_object`, which can be called from
`explode_badass_player`.  Chained together, this lets
`object_create_explosion_sub` check the weapon ID of a dying player,
which is not a valid operation.  This causes a diagnostic from
`get_weapon_id`.  Add an explicit test that the object is a weapon so
that non-weapons do not cause a diagnostic.

Reported-by: ryusei117 <https://github.com/dxx-rebirth/dxx-rebirth/issues/302#issuecomment-272048330>
Analyzed-by: zicodxx <https://github.com/dxx-rebirth/dxx-rebirth/issues/302#issuecomment-272710279>
2017-01-28 18:12:21 +00:00
common Initialize grs_main_bitmap at construction 2017-01-28 18:12:20 +00:00
contrib Update Xcode project for recently added/removed files 2017-01-07 15:30:18 +08:00
d1x-rebirth Make grs_bitmap::bm_flags private 2017-01-15 00:03:13 +00:00
d2x-rebirth Create robot_create function and use it 4x 2017-01-22 17:56:50 +08:00
Documentation Require support for reference qualified methods 2016-12-10 17:51:07 +00:00
similar Prevent treating dying players as weapons 2017-01-28 18:12:21 +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 Changed custom D1X license to GPLv3 2014-06-01 19:55:23 +02:00
INSTALL.markdown Fix Ubuntu package name in INSTALL.markdown 2016-12-23 02:56:55 +00:00
SConstruct Default to -fno-omit-frame-pointer for Windows 2017-01-11 03:03:19 +00:00