From 7a3d78d7ad9fc4709272099b65be395d925a9478 Mon Sep 17 00:00:00 2001 From: rr- Date: Mon, 22 Feb 2021 10:47:19 +0100 Subject: [PATCH] disallow looking around when dead --- src/game/lara.c | 2 +- src/game/laraswim.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/lara.c b/src/game/lara.c index fde64c486..a124c80da 100644 --- a/src/game/lara.c +++ b/src/game/lara.c @@ -85,7 +85,7 @@ void __cdecl LaraAboveWater(ITEM_INFO* item, COLL_INFO* coll) coll->enable_baddie_push = 1; #ifdef TOMB1M_FEAT_GAMEPLAY - if (Tomb1MConfig.enable_enhanced_look) { + if (Tomb1MConfig.enable_enhanced_look && item->hit_points > 0) { if (Input & IN_LOOK) { Tomb1MLookLeftRight(); } else { diff --git a/src/game/laraswim.c b/src/game/laraswim.c index dc448fc9e..af6b0138c 100644 --- a/src/game/laraswim.c +++ b/src/game/laraswim.c @@ -25,7 +25,7 @@ void __cdecl LaraUnderWater(ITEM_INFO* item, COLL_INFO* coll) coll->enable_baddie_push = 0; #ifdef TOMB1M_FEAT_GAMEPLAY - if (Tomb1MConfig.enable_enhanced_look) { + if (Tomb1MConfig.enable_enhanced_look && item->hit_points > 0) { if (Input & IN_LOOK) { Tomb1MLookLeftRight(); } else {