slight fixes
This commit is contained in:
@ -56,11 +56,11 @@ func (vp *ViewPort) Move(state *gamestate.GameState) {
|
||||
if y < 0 {
|
||||
y = 0
|
||||
}
|
||||
if x > state.Level.W-vp.W - 1 {
|
||||
x = state.Level.W - vp.W - 1
|
||||
if x > state.Level.W - vp.W - 1 {
|
||||
x = state.Level.W - vp.W
|
||||
}
|
||||
if y > state.Level.H-vp.H - 1 {
|
||||
y = state.Level.H - vp.H - 1
|
||||
y = state.Level.H - vp.H
|
||||
}
|
||||
if x != vp.cameraCoords.X || y != vp.cameraCoords.Y {
|
||||
state.FovRecompute <- struct{}{}
|
||||
|
Reference in New Issue
Block a user