spectate: avoid printing or taking action on load when disabled

develop
lethosor 2022-11-30 20:31:55 -05:00
parent d14a3f4970
commit 3b7206777e
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 4 additions and 2 deletions

@ -392,8 +392,10 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) {
DFhackCExport command_result plugin_load_data (color_ostream &out) {
SP::LoadSettings();
SP::following_dwarf = SP::FollowADwarf();
SP::PrintStatus(out);
if (enabled) {
SP::following_dwarf = SP::FollowADwarf();
SP::PrintStatus(out);
}
return DFHack::CR_OK;
}