2D3D: fixed_yz now works when scrolling

This commit is contained in:
Zeno Rogue 2019-06-25 10:31:07 +02:00
parent db988058de
commit 25999229a4
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -5558,5 +5558,6 @@ static const int PSEUDOKEY_MEMORY = 16397;
static const color_t NOCOLOR = 0;
extern int global_projection;
void spinEdge(ld aspd);
}