aboutsummaryrefslogtreecommitdiff
path: root/src/operate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operate.cc')
-rw-r--r--src/operate.cc13
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;
}
}