q1 map support

This commit is contained in:
GoaLitiuM
2021-08-31 20:03:19 +03:00
parent b834b669a6
commit 61b244b850

View File

@@ -196,7 +196,7 @@ namespace Game
while (index < data.Length) while (index < data.Length)
{ {
if (data[index] != ' ') if (data[index] != ' ' && data[index] != '\t')
break; break;
index++; index++;
} }
@@ -342,7 +342,8 @@ namespace Game
plane.rotation = ParseFloat(data, ref index); plane.rotation = ParseFloat(data, ref index);
plane.scale = ParseVector2(data, ref index); plane.scale = ParseVector2(data, ref index);
if (true) // quake3 format var peekChar = (char) data[index];
if (peekChar != '\n') // quake3 format
{ {
plane.contentFlags = ParseInt(data, ref index); plane.contentFlags = ParseInt(data, ref index);
plane.surfaceFlags = ParseInt(data, ref index); plane.surfaceFlags = ParseInt(data, ref index);