mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fix indentation of logging code and around it
That wouldn't be as big issue if problem affected few files, but it everywhere in codebase. Fixed it everywhere since in most files that is the only code with wrong indentation.
This commit is contained in:
@ -173,7 +173,9 @@ SDL_Surface * BitmapHandler::loadBitmap(std::string fname, bool setKey)
|
||||
|
||||
if (!(bitmap = loadBitmapFromDir("DATA/", fname, setKey)) &&
|
||||
!(bitmap = loadBitmapFromDir("SPRITES/", fname, setKey)))
|
||||
{
|
||||
logGlobal->errorStream() << "Error: Failed to find file " << fname;
|
||||
}
|
||||
|
||||
return bitmap;
|
||||
}
|
||||
|
@ -331,8 +331,8 @@ void CClient::loadGame(const std::string & fname, const bool server, const std::
|
||||
if(server)
|
||||
{
|
||||
for(auto & elem : gs->scenarioOps->playerInfos)
|
||||
if(!std::count(humanplayerindices.begin(),humanplayerindices.end(),elem.first.getNum()) || elem.first==player)
|
||||
{
|
||||
if(!std::count(humanplayerindices.begin(),humanplayerindices.end(),elem.first.getNum()) || elem.first==player)
|
||||
clientPlayers.insert(elem.first);
|
||||
}
|
||||
clientPlayers.insert(PlayerColor::NEUTRAL);
|
||||
|
@ -1174,7 +1174,6 @@ void CAnimation::getAnimInfo()
|
||||
logGlobal->errorStream() << "Animation stats: Loaded " << loadedAnims.size() << " total";
|
||||
for(auto anim : loadedAnims)
|
||||
{
|
||||
|
||||
logGlobal->errorStream() << "Name: " << anim->name << " Groups: " << anim->images.size();
|
||||
if(!anim->images.empty())
|
||||
logGlobal->errorStream() << ", " << anim->images.begin()->second.size() << " image loaded in group " << anim->images.begin()->first;
|
||||
|
@ -2159,8 +2159,10 @@ bool AccessibilityInfo::accessible(BattleHex tile, bool doubleWide, bool attacke
|
||||
// isn't accessible
|
||||
else if(at(hex) != EAccessibility::ACCESSIBLE &&
|
||||
!(at(hex) == EAccessibility::GATE && !attackerOwned))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -6134,7 +6134,7 @@ CasualtiesAfterBattle::CasualtiesAfterBattle(const CArmedInstance * _army, Battl
|
||||
{
|
||||
if(st->alive() && st->count > 0)
|
||||
{
|
||||
logGlobal->debugStream() << "Permanently summoned " + st->count << " units.";
|
||||
logGlobal->debugStream() << "Permanently summoned " << st->count << " units.";
|
||||
const CreatureID summonedType = st->type->idNumber;
|
||||
summoned[summonedType] += st->count;
|
||||
}
|
||||
|
Reference in New Issue
Block a user