mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
map_replace_area: other minor fixes to pass CI tests
This commit is contained in:
parent
ce3577dac6
commit
8c392c9437
|
@ -603,7 +603,7 @@ void GetGameAreaDistance(const float pGameAreas[2][2][2], const MapObject Obs[2]
|
||||||
|
|
||||||
void GetGameAreaDistance(const float pGameAreas[2][2][2], const MapObject Obs[2], const float pVisibleArea[2][2], float pDistance[2])
|
void GetGameAreaDistance(const float pGameAreas[2][2][2], const MapObject Obs[2], const float pVisibleArea[2][2], float pDistance[2])
|
||||||
{
|
{
|
||||||
float pVisibleAreas[2][2][2] = {0,0,0,0,0,0,0,0};
|
float pVisibleAreas[2][2][2];
|
||||||
memcpy(pVisibleAreas[0], pVisibleArea[0], sizeof(float[2][2]));
|
memcpy(pVisibleAreas[0], pVisibleArea[0], sizeof(float[2][2]));
|
||||||
memcpy(pVisibleAreas[1], pVisibleArea[0], sizeof(float[2][2]));
|
memcpy(pVisibleAreas[1], pVisibleArea[0], sizeof(float[2][2]));
|
||||||
GetGameAreaDistance(pGameAreas, Obs, pVisibleAreas, pDistance);
|
GetGameAreaDistance(pGameAreas, Obs, pVisibleAreas, pDistance);
|
||||||
|
|
Loading…
Reference in a new issue