From 10e50664f0a4b3edf31f96176801b318ef0ed3c3 Mon Sep 17 00:00:00 2001 From: farisawan-2000 Date: Tue, 15 Dec 2020 17:50:40 -0500 Subject: [PATCH] initial rotation typing support --- s2d_parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/s2d_parse.c b/s2d_parse.c index 802b3276..94a23bd4 100644 --- a/s2d_parse.c +++ b/s2d_parse.c @@ -80,15 +80,15 @@ void s2d_type_print(int x, int y, char *str, uObjMtx *buf, int *pos) { (*pos) += s2d_ilen(str + *pos + 2); break; case CH_ROT: - (*pos) += 2; + (*pos) += s2d_ilen(str + *pos + 2); + break; } temp_str[*pos] = '\0'; s2d_print(x, y, temp_str, buf); temp_str[*pos] = tmp; if (s2d_timer % 2 == 0) { - if (*pos < len) - (*pos)++; + if (*pos < len) (*pos)++; } }