From cc0650b5d0fd31128263a3ad2437a7e13e92e5da Mon Sep 17 00:00:00 2001 From: zlago Date: Sun, 26 Jan 2025 19:03:31 +0100 Subject: fix hp upon respawning when respawning the player properties would depend on their state upon the last screen transition --- src/save.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/save.c') diff --git a/src/save.c b/src/save.c index faeb8d1..83e21de 100644 --- a/src/save.c +++ b/src/save.c @@ -38,6 +38,7 @@ int game_load(FILE *file) { fputs("invalid save format\n", stderr); return 1; } + player_new(&next_entities); player_property(next_entities.player, "x", filedata); filedata += len + 1; len = strnlen(filedata, filesize); -- cgit 1.4.1-2-gfad0