tgstation / tgstation

The /tg/station branch of SS13.
https://www.tgstation13.org/
GNU Affero General Public License v3.0
1.72k stars 4.76k forks source link

Maploader does not support partial template loading #77482

Closed itsmeow closed 1 year ago

itsmeow commented 1 year ago

There is a bug in the maploader, specifically this line

https://github.com/tgstation/tgstation/blob/14c3f2e829efb83b18f2cb667dc47317570ab256/code/modules/mapping/reader.dm#L346

All uses that I know of on TG don't actually have a y_starting_skip that isn't zero (aka always loading the entire map), but downstream after switching to the updated maploder from #71074, we encountered a bug with our antigrief partial map regenerator not working. The problem was that the ycrd was far too high (over 255) and so nothing would regenerate. Simple fix was just doing -= rather than +=.

I don't have time to upstream this but here is the downstream PR: https://github.com/BeeStation/BeeStation-Hornet/pull/9636

LemonInTheDark commented 1 year ago

yeah u right u right