diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-25 10:09:17 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-25 10:09:17 -0300 |
| commit | ea319bc2fbef91e3ea062be554b215756648d1d3 (patch) | |
| tree | aa26422a754346e9881e5e0b510f78fd4cfe068c /src/operate.cc | |
| parent | 8bc2e5dc3a523af471065752a534d20d878c60b0 (diff) | |
| download | game-ea319bc2fbef91e3ea062be554b215756648d1d3.tar.gz game-ea319bc2fbef91e3ea062be554b215756648d1d3.zip | |
finish `crnonpl.cc`
Diffstat (limited to 'src/operate.cc')
| -rw-r--r-- | src/operate.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/operate.cc b/src/operate.cc index 6fb7f20..e742806 100644 --- a/src/operate.cc +++ b/src/operate.cc @@ -2787,17 +2787,8 @@ bool SectorRefreshable(int SectorX, int SectorY, int SectorZ){ continue; } - // TODO(fusion): Maybe an inlined function to check whether a player - // can see some floor. All floors above ground, when above ground. Or - // two floors up and down, when underground. - if(Player->posz <= 7){ - if(SectorZ <= 7){ - return false; - } - }else{ - if(std::abs(Player->posz - SectorZ) <= 2){ - return false; - } + if(Player->CanSeeFloor(SectorZ)){ + return false; } } |
