mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 10:22:48 +01:00
- fix loadsectorsPC error message when CD image is present
This commit is contained in:
parent
a4fe4845a9
commit
30d0099cf8
@ -3674,8 +3674,7 @@ int CivControl(CAR_DATA* cp)
|
|||||||
if (cp->ai.c.thrustState != 3)
|
if (cp->ai.c.thrustState != 3)
|
||||||
steer = CivSteerAngle(cp);
|
steer = CivSteerAngle(cp);
|
||||||
|
|
||||||
// reduce acceleration when steering is applied
|
thrust = CivAccel(cp) - MAX(ABS(steer), 4) * 3; // [A] reduce acceleration when steering is applied
|
||||||
thrust = CivAccel(cp) - MAX(ABS(steer), 4) * 3;
|
|
||||||
|
|
||||||
if (thrust < 0 && cp->hd.wheel_speed < 5)
|
if (thrust < 0 && cp->hd.wheel_speed < 5)
|
||||||
thrust = 0;
|
thrust = 0;
|
||||||
|
@ -535,6 +535,10 @@ void sector_ready(u_char intr, u_char* result)
|
|||||||
int loadsectorsPC(char* addr, int sector, int nsectors)
|
int loadsectorsPC(char* addr, int sector, int nsectors)
|
||||||
{
|
{
|
||||||
char namebuffer[64];
|
char namebuffer[64];
|
||||||
|
|
||||||
|
if (g_CurrentLevelFileName[0] == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
strcpy(namebuffer, g_CurrentLevelFileName);
|
strcpy(namebuffer, g_CurrentLevelFileName);
|
||||||
FS_FixPathSlashes(namebuffer);
|
FS_FixPathSlashes(namebuffer);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user