mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-25 06:05:45 +00:00
Fix lost health refill on save.
The old HP (before health refill) ended up in the save file. Loading a save would therefore continue with the HP the player had before saving.
This commit is contained in:
parent
471aca067a
commit
0b4e6854f7
1 changed files with 2 additions and 0 deletions
|
@ -2350,6 +2350,8 @@ void Continuity::upgradeHealth()
|
|||
|
||||
void Continuity::saveFile(int slot, Vector position, unsigned char *scrShotData, int scrShotWidth, int scrShotHeight)
|
||||
{
|
||||
refreshAvatarData(dsq->game->avatar);
|
||||
|
||||
if (position.isZero())
|
||||
{
|
||||
position = dsq->game->avatar->position;
|
||||
|
|
Loading…
Reference in a new issue