minor entity bug fix, refactor tilemap to better map types and color
This commit is contained in:
@@ -88,6 +88,7 @@ entity_set_move_target :: proc(
|
||||
|
||||
start := ew.position[i]
|
||||
if !pathfind_astar(tm, start, target, &ew.path[i]) {
|
||||
ew.move_state[i] = .Idle
|
||||
return false
|
||||
}
|
||||
ew.path_index[i] = 1
|
||||
|
||||
Reference in New Issue
Block a user