summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-01-07 20:08:22 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-01-07 20:08:22 +0100
commitf569eb788f0ac0f5d10e2b83e2f7f3c9cd0b2d68 (patch)
tree5534404a2110993d47f652afaa766682e22d1e28 /src/control
parent342af3b087f922c65f25a40b650bb104aa9b9362 (diff)
downloadrpgedit-f569eb788f0ac0f5d10e2b83e2f7f3c9cd0b2d68.tar
rpgedit-f569eb788f0ac0f5d10e2b83e2f7f3c9cd0b2d68.zip
Limit rendering to on-screen tiles
Diffstat (limited to 'src/control')
-rw-r--r--src/control/MapContext.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/MapContext.ts b/src/control/MapContext.ts
index 1c0f1a8..ce82c5a 100644
--- a/src/control/MapContext.ts
+++ b/src/control/MapContext.ts
@@ -31,7 +31,7 @@ export default class MapContext {
this.view = new MapView(
map,
this.entities,
- () => this.playerEntity,
+ this.playerEntity,
(time: number) => this.updateState(time)
);