From 2c625ea3527f0f1c6df9d1b9a11886dcf88a0599 Mon Sep 17 00:00:00 2001 From: Viet Dinh <36768030+Desdaemon@users.noreply.github.com> Date: Sat, 26 Oct 2024 16:11:32 -0400 Subject: [PATCH] Retain multiplayer battleanims after menu close (#48) --- src/battle_animation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/battle_animation.cpp b/src/battle_animation.cpp index 915c293b3..00cf44beb 100644 --- a/src/battle_animation.cpp +++ b/src/battle_animation.cpp @@ -17,6 +17,7 @@ #include "bitmap.h" #include +#include "drawable.h" #include "output.h" #include "game_battle.h" #include "game_system.h" @@ -35,7 +36,7 @@ #include "spriteset_map.h" BattleAnimation::BattleAnimation(const lcf::rpg::Animation& anim, bool only_sound, int cutoff, bool synced, bool multiplayer) : - animation(anim), only_sound(only_sound), synced(synced), multiplayer(multiplayer) + Sprite(multiplayer ? Drawable::Flags::Shared : Drawable::Flags::Default), animation(anim), only_sound(only_sound), synced(synced), multiplayer(multiplayer) { num_frames = GetRealFrames() * 2; if (cutoff >= 0 && cutoff < num_frames) {