Fix demo id check bug

Test for type OBJ_FIREBALL before comparing the object ID to a fireball
ID.
This commit is contained in:
Kp 2015-12-05 15:51:29 +00:00
parent b286458119
commit af97689d98

View file

@ -532,7 +532,7 @@ static void nd_read_shortpos(const vobjptr_t obj)
nd_read_short(&(sp.velz));
my_extract_shortpos(obj, &sp);
if (get_fireball_id(obj) == VCLIP_MORPHING_ROBOT && render_type == RT_FIREBALL && obj->control_type == CT_EXPLOSION)
if (obj->type == OBJ_FIREBALL && get_fireball_id(obj) == VCLIP_MORPHING_ROBOT && render_type == RT_FIREBALL && obj->control_type == CT_EXPLOSION)
extract_orient_from_segment(&obj->orient, vcsegptr(obj->segnum));
}