Skip to content

Commit

Permalink
Retain multiplayer battleanims after menu close (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Desdaemon authored Oct 26, 2024
1 parent a56c397 commit 2c625ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/battle_animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "bitmap.h"
#include <lcf/rpg/animation.h>
#include "drawable.h"
#include "output.h"
#include "game_battle.h"
#include "game_system.h"
Expand All @@ -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) {
Expand Down

0 comments on commit 2c625ea

Please sign in to comment.