Maintenance: [forced, user-approved] Family G32: remove TerrainHeight (31 files, reassigned from agent 2). The height-grid methods ru
Batch #10268 by ragnarok-clanker: forced by an admin (17 lower score(s), 85 changed function(s)); checked with 222 compiled unit(s), including every includer of Source/Client/Mode/CGameMode.h, Source/Contents/Camera/CameraFrame.h, Source/Contents/Ground/TerrainHeight.h, Source/Contents/World/World.h, Source/Resource/World/TerrainResource.h.
This commit is contained in:
parent
5f87e5e6bb
commit
ba6ca37fa1
50 changed files with 211 additions and 230 deletions
|
|
@ -78,7 +78,7 @@ void CGameMode::StepTowardWalkableCell(const int& targetX, const int& targetY, i
|
|||
--y;
|
||||
}
|
||||
|
||||
if (this->scene->terrain->Grid().Walkable(x, y)) {
|
||||
if (this->scene->terrain->Walkable(x, y)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ void CGameMode::StepTowardWalkableCell(const int& targetX, const int& targetY, i
|
|||
for (int i = 0; i < 8; ++i) {
|
||||
x = startX + offsets[i][0];
|
||||
y = startY + offsets[i][1];
|
||||
if (this->scene->terrain->Grid().Walkable(x, y)) {
|
||||
if (this->scene->terrain->Walkable(x, y)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -103,7 +103,7 @@ void CGameMode::FindWalkableCellToward(float x, float z, float originX, float or
|
|||
|
||||
const int startY = row;
|
||||
const int startX = column;
|
||||
if (this->scene->terrain->Grid().Walkable(startX, startY)) {
|
||||
if (this->scene->terrain->Walkable(startX, startY)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -111,7 +111,7 @@ void CGameMode::FindWalkableCellToward(float x, float z, float originX, float or
|
|||
for (int i = 0; i < 8; ++i) {
|
||||
column = startX + offsets[i][0];
|
||||
row = startY + offsets[i][1];
|
||||
if (this->scene->terrain->Grid().Walkable(column, row)) {
|
||||
if (this->scene->terrain->Walkable(column, row)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue