summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-01-31 04:18:46 +0100
committerTreeki <treeki@gmail.com>2013-01-31 04:18:46 +0100
commit2f361e18c3f1b1c003a61603465df12d03789aad (patch)
treee8d52cd281752c0a630006937502a662578d63c9
parentb9f9eeb73d6e3f4ebbd5d45c5997f73478425779 (diff)
downloadkamek-2f361e18c3f1b1c003a61603465df12d03789aad.tar.gz
kamek-2f361e18c3f1b1c003a61603465df12d03789aad.zip
hacky camera for warp zone
Diffstat (limited to '')
-rw-r--r--src/koopatlas/camera.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/koopatlas/camera.cpp b/src/koopatlas/camera.cpp
index fcdd048..856d38c 100644
--- a/src/koopatlas/camera.cpp
+++ b/src/koopatlas/camera.cpp
@@ -96,9 +96,14 @@ int dWorldCamera_c::onExecute() {
if (change) {
}
}
- daWMPlayer_c *player = daWMPlayer_c::instance;
- currentX = player->pos.x;
- currentY = player->pos.y;
+ if (dScKoopatlas_c::instance->warpZoneHacks) {
+ currentX = 2484.0f;
+ currentY = -2100.0f;
+ } else {
+ daWMPlayer_c *player = daWMPlayer_c::instance;
+ currentX = player->pos.x;
+ currentY = player->pos.y;
+ }
calculateScreenGeometry();
doStuff(10000.0);