mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-13 16:51:14 +02:00
Added multiplayer page.
Fixed numerous bugs with the alpha.
This commit is contained in:
@@ -121,6 +121,13 @@ bool idDeclTable::Parse(const char* text, const int textLength) {
|
||||
snap = false;
|
||||
clamp = false;
|
||||
|
||||
if ( !idStr::Icmpn( text, "snapTable", 9 ) ) {
|
||||
snap = true;
|
||||
}
|
||||
else if ( !idStr::Icmpn( text, "clampTable", 10 ) ) {
|
||||
clamp = true;
|
||||
}
|
||||
|
||||
#ifdef QUAKE4
|
||||
minValue = idMath::INFINITY;
|
||||
maxValue = -1.0e30f;
|
||||
@@ -179,6 +186,45 @@ bool idDeclTable::Parse(const char* text, const int textLength) {
|
||||
}
|
||||
|
||||
}
|
||||
else if ( token.type == TT_NUMBER || token == "." || token == "-" ) {
|
||||
src.UnreadToken( &token );
|
||||
|
||||
while ( 1 ) {
|
||||
bool errorFlag;
|
||||
|
||||
v = src.ParseFloat( &errorFlag );
|
||||
if ( errorFlag ) {
|
||||
MakeDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
values.Append( v );
|
||||
|
||||
#ifdef QUAKE4
|
||||
if ( v < minValue ) {
|
||||
minValue = v;
|
||||
}
|
||||
if ( v > maxValue ) {
|
||||
maxValue = v;
|
||||
}
|
||||
#endif
|
||||
|
||||
if ( !src.ReadToken( &token ) ) {
|
||||
break;
|
||||
}
|
||||
if ( token == "}" ) {
|
||||
break;
|
||||
}
|
||||
if ( token == "," ) {
|
||||
continue;
|
||||
}
|
||||
src.Warning( "expected comma or brace" );
|
||||
MakeDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
else {
|
||||
src.Warning("unknown token '%s'", token.c_str());
|
||||
MakeDefault();
|
||||
|
||||
Reference in New Issue
Block a user