X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.cpp;h=35c0c5c76f9a09a53b38e68ac5f8228d524c8449;hb=d71217e2be1466726581146000a0f61620423e9b;hp=d678dab965d573c7722a963a9cc5936ac57af5c6;hpb=11cf419b542070def1d0edaa69d2389ab1ab427b;p=l2e.git diff --git a/src/map/MapState.cpp b/src/map/MapState.cpp index d678dab..35c0c5c 100644 --- a/src/map/MapState.cpp +++ b/src/map/MapState.cpp @@ -296,6 +296,9 @@ bool MapState::CheckMonster() { battleState->AddHero(*game->state->party[i]); } } + if (game->state->capsule) { + battleState->SetCapsule(game->state->capsule); + } for (battle::Monster **monster((*e)->MonstersBegin()); monster != (*e)->MonstersEnd(); ++monster) { battleState->AddMonster(**monster); } @@ -311,9 +314,6 @@ bool MapState::CheckMonster() { // TODO: move entity erase to happen after the transition or battle entities.erase(e); return true; - // needed information here: - // - battle background (from tile/area/map) - // - monsters + layout (from entity) } } }