From 632b2a2061ab7484e1c9f0b3fe71aec49ab24527 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Thu, 11 Dec 2014 01:43:26 -0500 Subject: [PATCH] Print error when attempting to switch with self --- osx/boe.actions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osx/boe.actions.cpp b/osx/boe.actions.cpp index c541a65a..dcea36da 100644 --- a/osx/boe.actions.cpp +++ b/osx/boe.actions.cpp @@ -2448,8 +2448,8 @@ void switch_pc(short which) cPlayer store_pc; if (current_switch < 6) { - add_string_to_buf("Switch: OK."); if (current_switch != which) { + add_string_to_buf("Switch: OK."); store_pc = univ.party[which]; univ.party[which] = univ.party[current_switch]; univ.party[current_switch] = store_pc; @@ -2458,8 +2458,8 @@ void switch_pc(short which) else if (current_pc == which) current_pc = current_switch; set_stat_window(current_pc); - current_switch = 6; - } + } else ASB("Switch: Not with self."); + current_switch = 6; } else { add_string_to_buf("Switch: Switch with who? ");