File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -222,11 +222,11 @@ void mapclass::updateroomnames(void)
222222 if (rx == roomname->x && ry == roomname->y && (roomname->flag == -1 || (INBOUNDS_ARR (roomname->flag , obj.flags ) && obj.flags [roomname->flag ])))
223223 {
224224 roomname_special = true ;
225- if (roomname->type == RoomnameType_STATIC)
225+ if (roomname->type == RoomnameType_STATIC && roomname-> text . size () >= 1 )
226226 {
227227 setroomname (roomname->text [0 ].c_str ());
228228 }
229- if (roomname->type == RoomnameType_GLITCH)
229+ if (roomname->type == RoomnameType_GLITCH && roomname-> text . size () >= 2 )
230230 {
231231 roomname->delay --;
232232 if (roomname->delay <= 0 )
@@ -240,7 +240,7 @@ void mapclass::updateroomnames(void)
240240 }
241241 setroomname (roomname->text [roomname->progress ].c_str ());
242242 }
243- if (roomname->type == RoomnameType_TRANSFORM)
243+ if (roomname->type == RoomnameType_TRANSFORM && roomname-> text . size () >= 1 )
244244 {
245245 roomname->delay --;
246246 if (roomname->delay <= 0 )
You can’t perform that action at this time.
0 commit comments