Simplify bounds clipping a tiny bit

This commit is contained in:
2020-04-18 11:44:05 +01:00
parent 6e70ddcb60
commit b191ba2a94
3 changed files with 24 additions and 20 deletions

View File

@@ -11,8 +11,9 @@ import (
type Scenario struct {
area *assetstore.Map
tick int
turn int
tick int
turn int
selectedCell IsoPt
// All these must be modified by user actions somehow.
// TODO: extract into the idea of a viewport passed to Update / Draw somehow?