[[ RefactorGraphics ]] fix sprite rendering glitch in tilecache