From 25999229a4c75b8b3cde8d3d947cba0bd777c7a6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 25 Jun 2019 10:31:07 +0200 Subject: [PATCH] 2D3D: fixed_yz now works when scrolling --- control.cpp | 5 ++++- hyper.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/control.cpp b/control.cpp index 686a8b06..2546b4d6 100644 --- a/control.cpp +++ b/control.cpp @@ -582,8 +582,11 @@ void mainloopiter() { else { ors::check_orientation(); if(cmode & sm::CENTER) { + ld aspd = (ticks - lastt) / 1000.0 * exp(vid.sspeed); if(playermoved && vid.sspeed > -4.99 && !outoffocus) - centerpc((ticks - lastt) / 1000.0 * exp(vid.sspeed)); + centerpc(aspd); + else if(DIM == 3) + spinEdge(aspd); #if CAP_SDLJOY if(panjoyx || panjoyy) checkpanjoy((ticks - lastt) / 1000.0); diff --git a/hyper.h b/hyper.h index c4993585..84b67b4c 100644 --- a/hyper.h +++ b/hyper.h @@ -5558,5 +5558,6 @@ static const int PSEUDOKEY_MEMORY = 16397; static const color_t NOCOLOR = 0; extern int global_projection; +void spinEdge(ld aspd); } \ No newline at end of file