Saved Games: Always store current sp even when at max
This should fix the issue of SP being set to 0 when reloading a game, though existing saves will not be magically fixed.
This commit is contained in:
@@ -1184,8 +1184,7 @@ void cPlayer::writeTo(std::ostream& file) const {
|
||||
file << "SKILL " << int(p.first) << ' ' << p.second << '\n';
|
||||
}
|
||||
file << "HEALTH " << cur_health << '\n';
|
||||
if(cur_sp != max_sp)
|
||||
file << "MANA " << cur_sp << '\n';
|
||||
file << "MANA " << cur_sp << '\n';
|
||||
file << "EXPERIENCE " << experience << '\n';
|
||||
file << "SKILLPTS " << skill_pts << '\n';
|
||||
file << "LEVEL " << level << '\n';
|
||||
|
Reference in New Issue
Block a user