record and replay showing PC info
This commit is contained in:
@@ -465,6 +465,9 @@ static bool give_pc_extra_info(cDialog& me, std::string item_hit, const short pc
|
||||
}
|
||||
|
||||
void give_pc_info(short pc_num) {
|
||||
if(recording){
|
||||
record_action("give_pc_info", boost::lexical_cast<std::string>(pc_num));
|
||||
}
|
||||
using namespace std::placeholders;
|
||||
std::string str;
|
||||
|
||||
|
@@ -525,6 +525,8 @@ static void replay_next_action() {
|
||||
handle_print_pc_hp(boost::lexical_cast<int>(next_action.GetText()));
|
||||
}else if(t == "handle_print_pc_sp"){
|
||||
handle_print_pc_sp(boost::lexical_cast<int>(next_action.GetText()));
|
||||
}else if(t == "give_pc_info"){
|
||||
give_pc_info(boost::lexical_cast<short>(next_action.GetText()));
|
||||
}
|
||||
|
||||
// TODO some of these actions shouldn't call advance_time(). They should return
|
||||
|
Reference in New Issue
Block a user