From b0e380e064247b5022bbad1501350b29585c5c18 Mon Sep 17 00:00:00 2001 From: XProger Date: Fri, 30 Dec 2016 04:11:05 +0300 Subject: [PATCH] #8 remove unused code --- src/camera.h | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/camera.h b/src/camera.h index 5a9d55a..8337e96 100644 --- a/src/camera.h +++ b/src/camera.h @@ -61,29 +61,6 @@ struct Camera : Controller { virtual void update() { #ifndef LEVEL_EDITOR if (cutscene) { // cutscene - /* - vec3 orig = owner->pos; - float rotY = 0.0f; - - switch (level->cameraFramesCount) { - case 1600 : // CUT1 - orig.x = 36668; - orig.z = 63180; - rotY = -23312.0f / float(0x4000) * PI * 0.5f; - break; - case 1000 : // CUT2 - orig.x = 51962; - orig.z = 53760; - rotY = 16380.0f / float(0x4000) * PI * 0.5f; - break; - case 400 : // CUT3 - rotY = PI * 0.5f; - break; - case 1890 : // CUT4 - rotY = PI * 0.5f; - break; - } - */ timer += Core::deltaTime * 30; float t = timer - int(timer); int indexA = int(timer) % level->cameraFramesCount;