[Fix] Player spawning on entities bug. For real this time!

This commit is contained in:
Tamir Atias 2012-02-08 22:58:13 +02:00
parent 3bcc36edec
commit 4a56e4cd00

View File

@ -25,7 +25,7 @@ void Game::New(const string& savegameIDArg) {
int spawnX;
int spawnY;
_map.FindSpawnPoint(spawnX, spawnY, _player->GetWidth(), _player->GetHeight());
_map.FindSpawnPoint(spawnX, spawnY, 40, 45);
_player->SetXY((float)spawnX, (float)spawnY);
}
@ -36,7 +36,7 @@ void Game::Load(const string& savegameIDArg) {
int spawnX;
int spawnY;
_map.FindSpawnPoint(spawnX, spawnY, _player->GetWidth(), _player->GetHeight());
_map.FindSpawnPoint(spawnX, spawnY, 40, 45);
_player->SetXY((float)spawnX, (float)spawnY);
}