Fix AppVeyor build failure

This commit is contained in:
spherallic 2022-09-20 20:42:19 +02:00
parent fe8485cc2f
commit cc3d4acdcd

View file

@ -5651,18 +5651,19 @@ static void P_ConvertBinaryLinedefTypes(void)
case 544: //Current
case 545: //Upwards current
case 546: //Downwards current
fixed_t speed = (lines[i].flags & ML_EFFECT6) ? sides[lines[i].sidenum[0]].textureoffset : R_PointToDist2(lines[i].v2->x, lines[i].v2->y, lines[i].v1->x, lines[i].v1->y);
{
fixed_t strength = (lines[i].flags & ML_EFFECT6) ? sides[lines[i].sidenum[0]].textureoffset : R_PointToDist2(lines[i].v2->x, lines[i].v2->y, lines[i].v1->x, lines[i].v1->y);
lines[i].args[0] = tag;
switch ((lines[i].special - 541) % 3)
{
case 0:
lines[i].args[1] = speed >> FRACBITS;
lines[i].args[1] = strength >> FRACBITS;
break;
case 1:
lines[i].args[2] = speed >> FRACBITS;
lines[i].args[2] = strength >> FRACBITS;
break;
case 2:
lines[i].args[2] = -speed >> FRACBITS;
lines[i].args[2] = -strength >> FRACBITS;
break;
}
lines[i].args[3] = (lines[i].special >= 544) ? p_current : p_wind;
@ -5672,6 +5673,7 @@ static void P_ConvertBinaryLinedefTypes(void)
lines[i].args[4] |= TMPF_NONEXCLUSIVE;
lines[i].special = 541;
break;
}
case 600: //Floor lighting
case 601: //Ceiling lighting
lines[i].args[0] = tag;