calling scrape_object_on_wall in each case of HIT_WALL more reliable to properly do hazard surface damage and prevent weapon objects from possibly sliding against walls
This commit is contained in:
parent
84b60ab017
commit
49649ab697
|
@ -3,6 +3,7 @@ D1X-Rebirth Changelog
|
||||||
20111124
|
20111124
|
||||||
--------
|
--------
|
||||||
main/collide.c, main/collide.h, main/fireball.c, main/game.c: Smoothed disabling of friendly fire to re-enable splash damage possible when friendly fire is disabled
|
main/collide.c, main/collide.h, main/fireball.c, main/game.c: Smoothed disabling of friendly fire to re-enable splash damage possible when friendly fire is disabled
|
||||||
|
main/physics.c: calling scrape_object_on_wall in each case of HIT_WALL more reliable to properly do hazard surface damage and prevent weapon objects from possibly sliding against walls
|
||||||
|
|
||||||
20111114
|
20111114
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -579,7 +579,7 @@ void do_physics_sim(object *obj)
|
||||||
|
|
||||||
if (wall_part != 0 && moved_time>0 && (hit_speed=-fixdiv(wall_part,moved_time))>0)
|
if (wall_part != 0 && moved_time>0 && (hit_speed=-fixdiv(wall_part,moved_time))>0)
|
||||||
collide_object_with_wall( obj, hit_speed, WallHitSeg, WallHitSide, &hit_info.hit_pnt );
|
collide_object_with_wall( obj, hit_speed, WallHitSeg, WallHitSide, &hit_info.hit_pnt );
|
||||||
else
|
|
||||||
scrape_object_on_wall(obj, WallHitSeg, WallHitSide, &hit_info.hit_pnt );
|
scrape_object_on_wall(obj, WallHitSeg, WallHitSide, &hit_info.hit_pnt );
|
||||||
|
|
||||||
Assert( WallHitSeg > -1 );
|
Assert( WallHitSeg > -1 );
|
||||||
|
|
Loading…
Reference in a new issue