one line of cleaning server code
authorPerttu Ahola <celeron55@gmail.com>
Tue, 1 Feb 2011 15:08:28 +0000 (17:08 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 1 Feb 2011 15:08:28 +0000 (17:08 +0200)
src/server.cpp

index fea4ce734ea2bf3e299acbc540d515ab4d975583..669266cf2ff079a1d3376fd2a2d42d922d452715 100644 (file)
@@ -3224,7 +3224,6 @@ Player *Server::emergePlayer(const char *name, const char *password,
                                <<player->getName()<<"\""<<std::endl;
 
                v2s16 nodepos;
-               f32 groundheight = 0;
 #if 1
                player->setPosition(intToFloat(v3s16(
                                0,
@@ -3233,6 +3232,7 @@ Player *Server::emergePlayer(const char *name, const char *password,
                )));
 #endif
 #if 0
+               f32 groundheight = 0;
 #if 0
                // Try to find a good place a few times
                for(s32 i=0; i<500; i++)