{
w = 0;
tempnumpoints = 4;
- PolygonD_QuadForPlane(temppoints[w], plane->normal[0], plane->normal[1], plane->normal[2], plane->normal[3], maxdist);
+ PolygonD_QuadForPlane(temppoints[w], plane->normal[0], plane->normal[1], plane->normal[2], plane->dist, maxdist);
for (planenum2 = 0, plane2 = planes;planenum2 < numplanes && tempnumpoints >= 3;planenum2++, plane2++)
{
if (planenum2 == planenum)
Cbuf_AddText("\n");
Cbuf_AddText(command_when_done);
Cbuf_AddText("\n");
- Curl_Clear_forthismap(NULL);
+ Curl_Clear_forthismap();
}
else if(numdownloads_added && numdownloads_fail && *command_when_error)
{
Cbuf_AddText("\n");
Cbuf_AddText(command_when_error);
Cbuf_AddText("\n");
- Curl_Clear_forthismap(NULL);
+ Curl_Clear_forthismap();
}
}
if (StartingGame)
lanConfig_cursor = 1;
lanConfig_port = 26000;
- sprintf(lanConfig_portname, "%u", lanConfig_port);
+ sprintf(lanConfig_portname, "%u", (unsigned int) lanConfig_port);
M_Update_Return_Reason("");
}
l = atoi(lanConfig_portname);
if (l <= 65535)
lanConfig_port = l;
- sprintf(lanConfig_portname, "%u", lanConfig_port);
+ sprintf(lanConfig_portname, "%u", (unsigned int) lanConfig_port);
}
//=============================================================================
sprintf (line, "pointer");
break;
default:
- sprintf (line, "bad type %i", type);
+ sprintf (line, "bad type %i", (int) type);
break;
}