more checking rooms
This commit is contained in:
@ -14,7 +14,7 @@ import (
|
||||
var NotInViewError = errors.New("not in ViewPort")
|
||||
|
||||
type ViewPort struct {
|
||||
*types.Rect
|
||||
types.Rect
|
||||
cameraCoords types.Coords
|
||||
layer *Layer
|
||||
Fov fov.Fov
|
||||
@ -27,7 +27,7 @@ func NewViewPort(x, y, w, h int, layer *Layer) *ViewPort {
|
||||
computedFov := precomputed_shade.NewPrecomputedShade(15)
|
||||
computedFov.Init()
|
||||
vp := ViewPort{
|
||||
Rect: &types.Rect{x, y, w, h},
|
||||
Rect: types.Rect{x, y, w, h},
|
||||
layer: layer,
|
||||
Fov: computedFov,
|
||||
}
|
||||
|
Reference in New Issue
Block a user