mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Integrated valid fixes from PR #1143
This commit is contained in:
parent
111ac36417
commit
65802d958b
@ -569,7 +569,7 @@ void CMapHandler::CMapWorldViewBlitter::drawOverlayEx(SDL_Surface * targetSurf)
|
||||
continue;
|
||||
|
||||
realPos.x = initPos.x + (iconInfo.pos.x - topTile.x) * tileSize;
|
||||
realPos.y = initPos.x + (iconInfo.pos.y - topTile.y) * tileSize;
|
||||
realPos.y = initPos.y + (iconInfo.pos.y - topTile.y) * tileSize;
|
||||
|
||||
auto wvIcon = this->objectToIcon(iconInfo.id, iconInfo.subId, iconInfo.owner);
|
||||
|
||||
|
@ -918,7 +918,7 @@ std::function<void()> CExchangeController::onSwapArmy()
|
||||
{
|
||||
GsThread::run([=]
|
||||
{
|
||||
if(right->tempOwner != cb->getMyColor()
|
||||
if(left->tempOwner != cb->getMyColor()
|
||||
|| right->tempOwner != cb->getMyColor())
|
||||
{
|
||||
return;
|
||||
|
@ -126,7 +126,7 @@ void CRandomRewardObjectInfo::configureObject(CRewardableObject * object, CRando
|
||||
object->canRefuse = parameters["canRefuse"].Bool();
|
||||
|
||||
auto visitMode = parameters["visitMode"].String();
|
||||
for(int i = 0; Rewardable::VisitModeString.size(); ++i)
|
||||
for(int i = 0; i < Rewardable::VisitModeString.size(); ++i)
|
||||
{
|
||||
if(Rewardable::VisitModeString[i] == visitMode)
|
||||
{
|
||||
@ -136,7 +136,7 @@ void CRandomRewardObjectInfo::configureObject(CRewardableObject * object, CRando
|
||||
}
|
||||
|
||||
auto selectMode = parameters["selectMode"].String();
|
||||
for(int i = 0; Rewardable::SelectModeString.size(); ++i)
|
||||
for(int i = 0; i < Rewardable::SelectModeString.size(); ++i)
|
||||
{
|
||||
if(Rewardable::SelectModeString[i] == selectMode)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user