mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-30 15:57:37 +00:00
cleanup: flatten dead branches in common app and ui code
This commit is contained in:
@@ -1,23 +1,15 @@
|
||||
#include "../../Minecraft.World/Platform/stdafx.h"
|
||||
#include "../../Minecraft.World/Items/ItemInstance.h"
|
||||
#if !(0) && !(0)
|
||||
#include "../UI/UI.h"
|
||||
#endif
|
||||
#include "Tutorial.h"
|
||||
#include "XuiCraftingTask.h"
|
||||
|
||||
bool XuiCraftingTask::isCompleted() {
|
||||
#if 1
|
||||
// This doesn't seem to work
|
||||
// IUIScene_CraftingMenu *craftScene =
|
||||
// reinterpret_cast<IUIScene_CraftingMenu *>(tutorial->getScene());
|
||||
#if 0
|
||||
CXuiSceneCraftingPanel* craftScene =
|
||||
(CXuiSceneCraftingPanel*)(tutorial->getScene());
|
||||
#else
|
||||
UIScene_CraftingMenu* craftScene =
|
||||
reinterpret_cast<UIScene_CraftingMenu*>(tutorial->getScene());
|
||||
#endif
|
||||
|
||||
bool completed = false;
|
||||
|
||||
@@ -36,7 +28,4 @@ bool XuiCraftingTask::isCompleted() {
|
||||
}
|
||||
|
||||
return completed;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user