- fix loadsectorsPC error message when CD image is present

This commit is contained in:
InspirationByte 2022-01-25 20:56:37 +03:00
parent a4fe4845a9
commit 30d0099cf8
2 changed files with 5 additions and 2 deletions

View File

@ -3674,8 +3674,7 @@ int CivControl(CAR_DATA* cp)
if (cp->ai.c.thrustState != 3)
steer = CivSteerAngle(cp);
// reduce acceleration when steering is applied
thrust = CivAccel(cp) - MAX(ABS(steer), 4) * 3;
thrust = CivAccel(cp) - MAX(ABS(steer), 4) * 3; // [A] reduce acceleration when steering is applied
if (thrust < 0 && cp->hd.wheel_speed < 5)
thrust = 0;

View File

@ -535,6 +535,10 @@ void sector_ready(u_char intr, u_char* result)
int loadsectorsPC(char* addr, int sector, int nsectors)
{
char namebuffer[64];
if (g_CurrentLevelFileName[0] == 0)
return 0;
strcpy(namebuffer, g_CurrentLevelFileName);
FS_FixPathSlashes(namebuffer);