1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Removed CGI in favor of VLC. Map handle is for now global variable

This commit is contained in:
Ivan Savenko
2025-02-10 22:52:48 +00:00
parent f657e85305
commit ffd37a8fa8
106 changed files with 940 additions and 1211 deletions

View File

@ -23,7 +23,6 @@
#include "CreatureAnimation.h"
#include "../CPlayerInterface.h"
#include "../CGameInfo.h"
#include "../GameEngine.h"
#include "../gui/WindowHandler.h"
#include "../media/ISoundPlayer.h"
@ -263,7 +262,7 @@ std::shared_ptr<IImage> BattleStacksController::getStackAmountBox(const CStack *
for(const auto & spellID : activeSpells)
{
auto positiveness = CGI->spells()->getByIndex(spellID)->getPositiveness();
auto positiveness = VLC->spells()->getByIndex(spellID)->getPositiveness();
if(!boost::logic::indeterminate(positiveness))
{
if(positiveness)