We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad3b6df commit 6f8d1b6Copy full SHA for 6f8d1b6
track.cpp
@@ -216,7 +216,9 @@ float Track::get_friction(blit::Vec2 pos) {
216
if(tile_coord.x < 0 || tile_coord.y < 0 || tile_coord.x >= map->bounds.w || tile_coord.y >= map->bounds.h)
217
return 0.0f;
218
219
- auto tile_id = map->tile_at(tile_coord);
+ // we know that the coord is in bounds so skip the offset calcs
220
+ //auto tile_id = map->tile_at(tile_coord);
221
+ auto tile_id = map->tiles[tile_coord.x + tile_coord.y * map->bounds.w];
222
223
// default
224
if(tile_id >= info.tile_friction_len)
0 commit comments