Added multiplayer page.

Fixed numerous bugs with the alpha.
This commit is contained in:
Justin Marshall
2026-05-20 12:44:52 -07:00
parent 6170f0d4fc
commit b6ea2fb5fa
7 changed files with 1077 additions and 38 deletions
+46
View File
@@ -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();