This commit is contained in:
parent
bc1a16538b
commit
8c2b43d7c3
2 changed files with 8 additions and 5 deletions
|
@ -763,10 +763,13 @@ if(newmode!=-1)
|
|||
}
|
||||
|
||||
// Stop the player vanishing off the edge of the telly..
|
||||
if(!m_lockCamera)
|
||||
{
|
||||
if(Pos.vx<m_playerPosLimitBox.x1) Pos.vx=m_playerPosLimitBox.x1;
|
||||
else if(Pos.vx>m_playerPosLimitBox.x2) Pos.vx=m_playerPosLimitBox.x2;
|
||||
if(Pos.vy<m_playerPosLimitBox.y1) Pos.vy=m_playerPosLimitBox.y1;
|
||||
else if(Pos.vy>m_playerPosLimitBox.y2) Pos.vy=m_playerPosLimitBox.y2;
|
||||
}
|
||||
|
||||
// Look around
|
||||
int pad=getPadInputHeld();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue