q1 map support
This commit is contained in:
@@ -196,7 +196,7 @@ namespace Game
|
||||
|
||||
while (index < data.Length)
|
||||
{
|
||||
if (data[index] != ' ')
|
||||
if (data[index] != ' ' && data[index] != '\t')
|
||||
break;
|
||||
index++;
|
||||
}
|
||||
@@ -342,7 +342,8 @@ namespace Game
|
||||
plane.rotation = ParseFloat(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.surfaceFlags = ParseInt(data, ref index);
|
||||
|
||||
Reference in New Issue
Block a user