Browse Source

* unnecessary code removed

mateuszb 14 years ago
parent
commit
406b3e3f1c
2 changed files with 2 additions and 4 deletions
  1. 2 2
      client/CAnimation.cpp
  2. 0 2
      server/CVCMIServer.cpp

+ 2 - 2
client/CAnimation.cpp

@@ -597,8 +597,8 @@ SDLImage::SDLImage(std::string filename, bool compressed):
 }
 
 void SDLImage::draw(SDL_Surface *where, int posX, int posY, Rect *src, unsigned char rotation) const
-{
-	if (!surf)
+{
+	if (!surf)
 		return;
 	Rect sourceRect(margins.x, margins.y, surf->w, surf->h);
 	//TODO: rotation and scaling

+ 0 - 2
server/CVCMIServer.cpp

@@ -518,8 +518,6 @@ int main(int argc, char** argv)
 #endif
 	}
 	tlog0 << "Port " << port << " will be used." << std::endl;
-	CLodHandler h3bmp;
-	h3bmp.init(DATA_DIR "/Data/H3bitmap.lod", DATA_DIR "/Data");
 	initDLL(console,logfile);
 	srand ( (unsigned int)time(NULL) );
 	try