src/util/assert: Correctly negate whole expression
src/map: Use assertion instead of manual check
editor: Clamp tileX and tileY instead of checking ranges for every operation
editor: Don't initialize tileX and tileY to arbitrary values

They can cause an overflow error when the map loader starts