Remove string splits with \r
from renderer resource parsers
#1666
Labels
area: renderer
Concerns our graphics renderer
bug
Behaving differently as it should behave
improvement
Enhancement of an existing component
lang: c++
Done in C++ code
Milestone
openage/libopenage/renderer/resources/parser/common.cpp
Lines 24 to 29 in 99e355e
openage/libopenage/renderer/resources/parser/parse_sprite.cpp
Line 199 in 99e355e
openage/libopenage/renderer/resources/parser/parse_terrain.cpp
Line 204 in 99e355e
openage/libopenage/renderer/resources/parser/parse_texture.cpp
Line 60 in 99e355e
openage/libopenage/renderer/resources/parser/parse_texture.cpp
Line 188 in 99e355e
This should not be handled in here, but in the string splitter code, see https://github.com/SFTtech/openage/blob/master/libopenage/util/strings.cpp
I guess we need a dedicated newline function for this that first splits at
\n
and then checks if the generated lines end with\r
to also remove those.Originally posted by @heinezen in #1642 (comment)
The text was updated successfully, but these errors were encountered: