mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 10:22:48 +01:00
- UpdateRoadPosition refactoring progress
- removed MAX_TRAFFIC_CARS as redundant
This commit is contained in:
parent
982c07bb3c
commit
4eecd43554
@ -1776,7 +1776,7 @@ int CreateCivCarWotDrivesABitThenStops(int direction, LONGVECTOR4* startPos, LON
|
||||
|
||||
carCnt++;
|
||||
slot++;
|
||||
} while (carCnt < &car_data[MAX_TRAFFIC_CARS]);
|
||||
} while (carCnt < &car_data[MAX_CARS]);
|
||||
|
||||
if (pNewCar == NULL)
|
||||
return -1;
|
||||
@ -1869,7 +1869,7 @@ int CreateStationaryCivCar(int direction, long orientX, long orientZ, LONGVECTOR
|
||||
|
||||
carCnt++;
|
||||
slot++;
|
||||
} while (carCnt < &car_data[MAX_TRAFFIC_CARS]);
|
||||
} while (carCnt < &car_data[MAX_CARS]);
|
||||
}
|
||||
|
||||
if (newCar)
|
||||
@ -2086,7 +2086,7 @@ int PingInCivCar(int minPingInDist)
|
||||
|
||||
carCnt++;
|
||||
slot++;
|
||||
} while (carCnt < &car_data[MAX_TRAFFIC_CARS]);
|
||||
} while (carCnt < &car_data[MAX_CARS]);
|
||||
|
||||
if (newCar == NULL)
|
||||
{
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -473,6 +473,12 @@ void DisplayMoon(DVECTOR* pos, CVECTOR* col, int flip)
|
||||
}
|
||||
|
||||
extern VECTOR dummy;
|
||||
RECT16 sun_source = {
|
||||
1008,
|
||||
456,
|
||||
16,
|
||||
10
|
||||
};
|
||||
|
||||
// [D] [T]
|
||||
void DrawLensFlare(void)
|
||||
@ -507,12 +513,7 @@ void DrawLensFlare(void)
|
||||
RECT16 source;
|
||||
CVECTOR col;
|
||||
|
||||
source = {
|
||||
1008,
|
||||
456,
|
||||
16,
|
||||
10
|
||||
};
|
||||
source = sun_source;
|
||||
|
||||
if (gWeather - 1U <= 1 || gTimeOfDay == 0 || gTimeOfDay == 2)
|
||||
return;
|
||||
@ -675,11 +676,16 @@ void DrawLensFlare(void)
|
||||
source.x = sun_pers_conv_position.vx;
|
||||
source.y = sun_pers_conv_position.vy + last->disp.disp.y;
|
||||
|
||||
#if 1//def PSX
|
||||
sample_sun = (DR_MOVE*)current->primptr;
|
||||
SetDrawMove(sample_sun, &source, 1008, 456);
|
||||
|
||||
addPrim(current->ot + 0x20, sample_sun);
|
||||
current->primptr += sizeof(DR_MOVE);
|
||||
#else
|
||||
// to avoid delays and uploads to GPU we're simply going to directly request from screen VRAM area
|
||||
sun_source = source;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -11,7 +11,6 @@
|
||||
#define MAX_PEDESTRIANS 28
|
||||
#define MAX_SEATED_PEDS 20
|
||||
#define MAX_PLACED_PEDS 15
|
||||
#define MAX_TRAFFIC_CARS 19
|
||||
#define MAX_EXPLOSION_OBJECTS 5
|
||||
#define MAX_THROWN_BOMBS 5
|
||||
#define MAX_MOTION_CAPTURE 24
|
||||
|
@ -310,8 +310,8 @@ void GameDebugKeys(int nKey, bool down)
|
||||
else if (nKey == SDL_SCANCODE_2)
|
||||
{
|
||||
gShowCollisionDebug++;
|
||||
if (gShowCollisionDebug > 3)
|
||||
gShowCollisionDebug = 0;
|
||||
gShowCollisionDebug %= 5;
|
||||
|
||||
printf("Collision debug: %d\n", gShowCollisionDebug);
|
||||
}
|
||||
else if (nKey == SDL_SCANCODE_3)
|
||||
|
Loading…
Reference in New Issue
Block a user