Corrected set position bugs when X axis is not valid while Y is. Corrected staircase collision boxes. Upper Foreground tiles added.
This commit is contained in:
+6
-1
@@ -82,7 +82,12 @@ void Player::SetZ(float z){
|
||||
}
|
||||
|
||||
bool Player::SetPos(vf2d pos){
|
||||
return SetX(pos.x)|SetY(pos.y);
|
||||
bool resultX=SetX(pos.x);
|
||||
bool resultY=SetY(pos.y);
|
||||
if(resultY&&!resultX){
|
||||
resultX=SetX(pos.x);
|
||||
}
|
||||
return resultX|resultY;
|
||||
}
|
||||
|
||||
vf2d&Player::GetPos(){
|
||||
|
||||
Reference in New Issue
Block a user