zorfmorf / hedge

0 stars 0 forks source link

Player can get stuck on supposedly walkable tiles #49

Closed zorfmorf closed 9 years ago

zorfmorf commented 9 years ago

bug The overlay bug has probably nothing to do with it

zorfmorf commented 9 years ago

Can be reproduced in any direction near a row of non walkable tiles. Walking alongside of it and trying to walk into each blocked tile will sooner or later allow the player to move slightly into the tile and then be stuck

zorfmorf commented 9 years ago

Found the problem! Out of lazyness, at one code point the pos table (actual tile position) was assigned to the posd table (draw position, can be between tiles), so when posd.x or pos.y tile was modified, the actual tile position was modified as well and therefore could have non-integer values which broke movement completely.