Prevent impossible lighting a massive stack of candles
This commit is contained in:
@@ -761,7 +761,7 @@ candle_light_range(struct obj *obj)
|
||||
long n = obj->quan;
|
||||
|
||||
radius = 1; /* always incremented at least once */
|
||||
while(radius*radius <= n) {
|
||||
while(radius*radius <= n && radius < MAX_RADIUS) {
|
||||
radius++;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user