From 2b7ea7d1e846c5881fe30e81489284feee7132ea Mon Sep 17 00:00:00 2001 From: escape209 Date: Sat, 3 Aug 2024 21:15:45 +0100 Subject: [PATCH] ztaskbox: Readd now-matching funcs (#342) --- src/SB/Game/zTaskBox.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/SB/Game/zTaskBox.cpp b/src/SB/Game/zTaskBox.cpp index 1c05943b..853c068b 100644 --- a/src/SB/Game/zTaskBox.cpp +++ b/src/SB/Game/zTaskBox.cpp @@ -156,32 +156,22 @@ void ztaskbox::initiate() } } -#if 0 -// Need to figure out how to set up the comparisons. void ztaskbox::succeed() { - state_enum state = this->state; if (state == STATE_BEGIN || state == STATE_DESCRIPTION || state == STATE_REMINDER) { set_state(STATE_SUCCESS); } } -#endif - -#if 0 -// Need to figure out how to set up the comparisons. The setup should be identical to the succeed function. void ztaskbox::fail() { - state_enum state = this->state; if (state == STATE_BEGIN || state == STATE_DESCRIPTION || state == STATE_REMINDER) { - set_state(STATE_FAIL); + set_state(STATE_FAILURE); } } -#endif - #if 0 // Why does the compiler add a random compare at the end???? void ztaskbox::complete() @@ -238,15 +228,11 @@ void ztaskbox::on_talk_start() #endif -#if 0 -// This one just doesn't feel like working. void ztaskbox::talk_callback::on_start() { this->task->on_talk_start(); } -#endif - void ztaskbox::talk_callback::on_stop() { this->task->on_talk_stop(answer);