m_Pos
MapIndex
overriding only happens because at that call site, it didn't depend on the tee's position, but some arbitrary other map positionGetMoveRestrictions
GetMoveRestrictions
checks the current tile and tiles in all four directions. only that center tile is being overridden at the changed call sitevoid CCharacter::HandleTiles(int Index)
am I missing sth here?TileIndex
as a parameter and uses that as the center tile for the stopper calculation, but gets the directional tiles from the tee's positionCCharacter::HandleTiles
what about removing these lines and the corresponding checks below:
https://github.com/ddnet/ddnet/blob/112d0432e2c47526bf6324a608f808f3cd002871/src/game/server/entities/character.cpp#L1369-L1380
they increase the radius for end and begin tiles... but only when HandleTiles is actually called, so only when you already touch some ddnet tile
this is inconsistent and just bloats the code