Skip to content

Commit

Permalink
Fixed #71
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmcwatters committed Feb 7, 2016
1 parent 11bfc54 commit 4b14dce
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/engine/server/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,12 @@ function onPostConnect( event )
player:onConnect()

-- Set spawn point
local spawnpoint = _G.gameserver.getSpawnPoint( player )
if ( spawnpoint ) then
local position = spawnpoint:getPosition()
player:setNetworkVar( "position", position )
local spawnPoint = _G.gameserver.getSpawnPoint( player )
local position = vector.origin + vector( 0, _G.game.tileSize )
if ( spawnPoint ) then
position = spawnPoint:getPosition()
end
player:setNetworkVar( "position", position )

-- Send server info
if ( _AXIS ) then
Expand Down

0 comments on commit 4b14dce

Please sign in to comment.