mirror of
https://github.com/zoriya/ForecastingVillage.git
synced 2026-06-07 20:22:11 +00:00
adding a little check
This commit is contained in:
@@ -101,7 +101,8 @@ gc_scene *scene, gc_engine *engine)
|
||||
|
||||
if (!player_entity)
|
||||
return;
|
||||
if (GETCMP(player_entity, health_component)->dead) {
|
||||
struct health_component *h_cmp = GETCMP(player_entity, health_component);
|
||||
if (h_cmp->dead) {
|
||||
combat_end(engine, false);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user