Skip to content

Commit

Permalink
Save/load disease intensity, fixed blisters bug and breaks save
Browse files Browse the repository at this point in the history
  • Loading branch information
Shoes01 committed Jun 11, 2013
1 parent 9d02380 commit f3e0581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ void player::load_info(game *g, std::string data)
disease illtmp;
dump >> numill;
for (int i = 0; i < numill; i++) {
dump >> typetmp >> illtmp.duration;
dump >> typetmp >> illtmp.duration >> illtmp.intensity;
illtmp.type = dis_type(typetmp);
illness.push_back(illtmp);
}
Expand Down Expand Up @@ -1172,7 +1172,7 @@ std::string player::save_info()

dump << illness.size() << " ";
for (int i = 0; i < illness.size(); i++)
dump << int(illness[i].type) << " " << illness[i].duration << " ";
dump << int(illness[i].type) << " " << illness[i].duration << " " << illness[i].intensity << " " ;

dump << addictions.size() << " ";
for (int i = 0; i < addictions.size(); i++)
Expand Down

0 comments on commit f3e0581

Please sign in to comment.