浏览代码

Fix tiny space issue and remove reference of SDL.h

toneyisnow 5 年之前
父节点
当前提交
8db638c054
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 2 3
      client/CPlayerInterface.cpp
  2. 0 1
      client/gui/CAnimation.cpp

+ 2 - 3
client/CPlayerInterface.cpp

@@ -739,10 +739,9 @@ void CPlayerInterface::battleUnitsChanged(const std::vector<UnitChanges> & units
 				if(unit->alive() && animation->isDead())
 					animation->setType(CCreatureAnim::HOLDING);
 
-				if (unit->isClone())
-				{
+				if(unit->isClone())
 					animation->shiftColor(ColorShifterDeepBlue::create());
-				}
+
 				//TODO: handle more cases
 			}
 			break;

+ 0 - 1
client/gui/CAnimation.cpp

@@ -11,7 +11,6 @@
 #include "CAnimation.h"
 
 #include <SDL_image.h>
-#include <SDL.h>
 
 #include "../CBitmapHandler.h"
 #include "../Graphics.h"