From 5c58d72959cd926452a35db1f393330853b03009 Mon Sep 17 00:00:00 2001 From: John FrostFox <john.frostfox@gmail.com> Date: Sat, 25 Sep 2021 01:33:12 +0300 Subject: [PATCH] Revert "Map surface texture scroll fix" This reverts commit 58a1fc03807e9db5904bdc2f8169298205aa6b73. --- src/p_spec.c | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index 0bb12cf58..b583c9d16 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -7223,21 +7223,30 @@ void T_Scroll(scroll_t *s) TAG_ITER_DECLARECOUNTER(0); case sc_side: // scroll wall texture - side = sides + s->affectee; - side->textureoffset += dx; - side->rowoffset += dy; + if (!issimulation) + { + side = sides + s->affectee; + side->textureoffset += dx; + side->rowoffset += dy; + } break; case sc_floor: // scroll floor texture - sec = sectors + s->affectee; - sec->floor_xoffs += dx; - sec->floor_yoffs += dy; + if (!issimulation) + { + sec = sectors + s->affectee; + sec->floor_xoffs += dx; + sec->floor_yoffs += dy; + } break; case sc_ceiling: // scroll ceiling texture - sec = sectors + s->affectee; - sec->ceiling_xoffs += dx; - sec->ceiling_yoffs += dy; + if (!issimulation) + { + sec = sectors + s->affectee; + sec->ceiling_xoffs += dx; + sec->ceiling_yoffs += dy; + } break; case sc_carry: -- GitLab