You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
fixed rotate typing
This commit is contained in:
11
s2d_parse.c
11
s2d_parse.c
@@ -71,16 +71,23 @@ void s2d_print(int x, int y, const char *str, uObjMtx *buf) {
|
||||
ty = 0;
|
||||
}
|
||||
|
||||
int ilen = 0;
|
||||
void s2d_type_print(int x, int y, char *str, uObjMtx *buf, int *pos) {
|
||||
char *temp_str = str;
|
||||
char tmp = temp_str[*pos];
|
||||
int len = s2d_strlen(str);
|
||||
switch(tmp) {
|
||||
case CH_SCALE:
|
||||
(*pos) += s2d_ilen(str + *pos + 2);
|
||||
ilen = s2d_ilen(str + *pos + 2);
|
||||
if (ilen <= 1) {
|
||||
(*pos) += ilen;
|
||||
} else {
|
||||
(*pos) += ilen + 1;
|
||||
}
|
||||
break;
|
||||
case CH_ROT:
|
||||
(*pos) += s2d_ilen(str + *pos + 2);
|
||||
(*pos) += s2d_ilen(str + *pos);
|
||||
|
||||
break;
|
||||
}
|
||||
temp_str[*pos] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user