2025-08-29 04:26 CEST

spring: develop e15b2ec7 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
tvo tvo develop 2007-07-01 00:15:47 develop 7203fd30
Changeset * Check whether LosMipLevel is in range [0, 6]
  (otherwise uninitialized memory is read)
* Check whether AirLosMipLevel is in range [0, 30]
  (outside that range bitshifts with signed integers act up)
* Minimum size of losMap is 1x1, this prevents integer division by zero when
  (Air)LosMipLevel is high and map is small.
* Fix CLosHandler allocating twice as much memory as needed since Viktor's patch.



git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@3871 37977431-3df6-0310-b722-df95706aa16b
mod - rts/Sim/Misc/LosHandler.cpp Diff ] File ]
mod - rts/Sim/Misc/SensorHandler.cpp Diff ] File ]