Skip to content

Commit

Permalink
Maniac: Warn about unimplemented Show/Move Picture features
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Sep 9, 2021
1 parent 16d54ea commit 83788d7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/game_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 83788d7

Please sign in to comment.