mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 13:40:45 +00:00
Fix the equation constant fields not being filled properly.
This commit is contained in:
parent
aec1ab304a
commit
9c68f8cbb0
1 changed files with 7 additions and 7 deletions
|
@ -1563,17 +1563,17 @@ static void ParseTextmapSectorParameter(UINT32 i, char *param, char *val)
|
|||
else if (fastcmp(param, "floorplane_b"))
|
||||
{
|
||||
textmap_planefloor.defined |= PD_B;
|
||||
textmap_planefloor.a = FLOAT_TO_FIXED(atof(val));
|
||||
textmap_planefloor.b = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (fastcmp(param, "floorplane_c"))
|
||||
{
|
||||
textmap_planefloor.defined |= PD_C;
|
||||
textmap_planefloor.a = FLOAT_TO_FIXED(atof(val));
|
||||
textmap_planefloor.c = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (fastcmp(param, "floorplane_d"))
|
||||
{
|
||||
textmap_planefloor.defined |= PD_D;
|
||||
textmap_planefloor.a = FLOAT_TO_FIXED(atof(val));
|
||||
textmap_planefloor.d = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (fastcmp(param, "ceilingplane_a"))
|
||||
{
|
||||
|
@ -1583,17 +1583,17 @@ static void ParseTextmapSectorParameter(UINT32 i, char *param, char *val)
|
|||
else if (fastcmp(param, "ceilingplane_b"))
|
||||
{
|
||||
textmap_planeceiling.defined |= PD_B;
|
||||
textmap_planeceiling.a = FLOAT_TO_FIXED(atof(val));
|
||||
textmap_planeceiling.b = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (fastcmp(param, "ceilingplane_c"))
|
||||
{
|
||||
textmap_planeceiling.defined |= PD_C;
|
||||
textmap_planeceiling.a = FLOAT_TO_FIXED(atof(val));
|
||||
textmap_planeceiling.c = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (fastcmp(param, "ceilingplane_d"))
|
||||
{
|
||||
textmap_planeceiling.defined |= PD_D;
|
||||
textmap_planeceiling.a = FLOAT_TO_FIXED(atof(val));
|
||||
textmap_planeceiling.d = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (fastcmp(param, "lightcolor"))
|
||||
{
|
||||
|
@ -3308,7 +3308,7 @@ static void P_ConvertBinaryMap(void)
|
|||
lines[i].args[4] |= TMSC_BACKTOFRONTCEILING;
|
||||
lines[i].special = 720;
|
||||
break;
|
||||
|
||||
|
||||
case 900: //Translucent wall (10%)
|
||||
case 901: //Translucent wall (20%)
|
||||
case 902: //Translucent wall (30%)
|
||||
|
|
Loading…
Reference in a new issue