diff options
author | zlago | 2025-01-26 19:03:31 +0100 |
---|---|---|
committer | zlago | 2025-01-26 19:03:31 +0100 |
commit | cc0650b5d0fd31128263a3ad2437a7e13e92e5da (patch) | |
tree | 2b754e779c1d2d34aca577fe6670ea13f556fa98 /src/save.c | |
parent | d8412decc77f38880b577b7c1f9b2e61aa438a66 (diff) |
fix hp upon respawning
when respawning the player properties would depend on their state upon the last screen transition
Diffstat (limited to 'src/save.c')
-rw-r--r-- | src/save.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |