1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 14:09:06 +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:
fgenesis 2014-04-15 21:01:18 +02:00
parent 471aca067a
commit 0b4e6854f7

View file

@ -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;