move real deletion behavior into drop_pc(), keep buffer messages

This commit is contained in:
2024-08-23 21:37:41 -05:00
committed by Celtic Minstrel
parent 2513fc113b
commit 47ceeabddc
3 changed files with 19 additions and 28 deletions

View File

@@ -689,19 +689,7 @@ void handle_menu_choice(eMenu item_hit) {
break;
case eMenu::OPTIONS_DELETE_PC:
if(!prime_time()) {
ASB("Finish what you're doing first.");
print_buf();
}
else {
choice = char_select_pc(1,"Delete who?");
if(choice < 6) {
std::string confirm = cChoiceDlog("delete-pc-confirm",{"yes","no"}).show();
if(confirm == "yes")
kill_pc(univ.party[choice],eMainStatus::ABSENT);
}
draw_terrain();
}
drop_pc();
break;