From 83788d76c2c7c6d12550f04ee9d7a0f03e36af0a Mon Sep 17 00:00:00 2001 From: Ghabry Date: Thu, 9 Sep 2021 21:35:59 +0200 Subject: [PATCH] Maniac: Warn about unimplemented Show/Move Picture features --- src/game_interpreter.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/game_interpreter.cpp b/src/game_interpreter.cpp index 95db656b037..25617ded5c2 100644 --- a/src/game_interpreter.cpp +++ b/src/game_interpreter.cpp @@ -2624,6 +2624,15 @@ bool Game_Interpreter::CommandShowPicture(lcf::rpg::EventCommand const& com) { / } params.flip_x = (flags & 16) == 16; params.flip_y = (flags & 32) == 32; + + if ((com.parameters[1] >> 8) != 0) { + Output::Warning("Maniac ShowPicture: X/Y origin not supported"); + } + + if (params.effect_mode == lcf::rpg::SavePicture::Effect_maniac_fixed_angle) { + Output::Warning("Maniac ShowPicture: Fixed angle not supported"); + params.effect_mode = lcf::rpg::SavePicture::Effect_none; + } } } @@ -2698,6 +2707,15 @@ bool Game_Interpreter::CommandMovePicture(lcf::rpg::EventCommand const& com) { / } params.flip_x = (flags & 16) == 16; params.flip_y = (flags & 32) == 32; + + if ((com.parameters[1] >> 8) != 0) { + Output::Warning("Maniac MovePicture: X/Y origin not supported"); + } + + if (params.effect_mode == lcf::rpg::SavePicture::Effect_maniac_fixed_angle) { + Output::Warning("Maniac MovePicture: Fixed angle not supported"); + params.effect_mode = lcf::rpg::SavePicture::Effect_none; + } } } else { // Corner case when 2k maps are used in 2k3 (pre-1.10) and don't contain this chunk