aboutsummaryrefslogtreecommitdiff
path: root/src/map.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2026-02-15 18:46:14 -0300
committerfusion32 <marcopuzziello@gmail.com>2026-02-15 18:48:20 -0300
commit3b42c6116613681abe24c4482ba51b9a3d971c04 (patch)
tree8e5768f8daec28d42e29d917118906334ee8ea6c /src/map.cc
parent38a06a06d6988009eb022f1a5ee0f31f8b93ac4e (diff)
downloadgame-3b42c6116613681abe24c4482ba51b9a3d971c04.tar.gz
game-3b42c6116613681abe24c4482ba51b9a3d971c04.zip
rename CHANNEL_PRIVATE to FIRST_PRIVATE_CHANNEL for readability
Also make it dependent on the number of public channels to avoid de-sync problems between them, when adding new public channels.
Diffstat (limited to 'src/map.cc')
-rw-r--r--src/map.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cc b/src/map.cc
index c692d30..87cd307 100644
--- a/src/map.cc
+++ b/src/map.cc
@@ -1307,8 +1307,8 @@ void SaveMap(void){
}
void RefreshSector(int SectorX, int SectorY, int SectorZ, TReadStream *Stream){
- // TODO(fusion): `matrix3d::at` will return the first entry if the coordinates
- // are out of bounds which that is problematic, specially here.
+ // NOTE(fusion): `matrix3d::at` would return the first entry if coordinates
+ // are out of bounds which could be a problem here.
if(SectorX < SectorXMin || SectorXMax < SectorX
|| SectorY < SectorYMin || SectorYMax < SectorY
|| SectorZ < SectorZMin || SectorZMax < SectorZ){