static void SetMouseActionFromTapeAction(struct MouseActionInfo *mouse_action,
byte *tape_action)
{
+ if (!tape.use_mouse)
+ return;
+
mouse_action->lx = tape_action[TAPE_ACTION_LX];
mouse_action->ly = tape_action[TAPE_ACTION_LY];
mouse_action->button = tape_action[TAPE_ACTION_BUTTON];
static void SetTapeActionFromMouseAction(byte *tape_action,
struct MouseActionInfo *mouse_action)
{
+ if (!tape.use_mouse)
+ return;
+
tape_action[TAPE_ACTION_LX] = mouse_action->lx;
tape_action[TAPE_ACTION_LY] = mouse_action->ly;
tape_action[TAPE_ACTION_BUTTON] = mouse_action->button;
int x = xx - offset;
int y = yy - offset;
+ if (!IS_MM_ELEMENT(element))
+ element = EL_MM_DEFAULT;
+
PlayLevelSoundElementAction(x, y, element, action);
}