Error maxxing

This commit is contained in:
2026-04-27 09:52:31 +02:00
parent 620d3b56e0
commit 205c630dbf
4 changed files with 9 additions and 7 deletions

View File

@@ -29,13 +29,13 @@ Car :: struct {
}
// Constructor
car_init :: proc(node: u32, nodes: []inf.Node) -> Car {
car_init :: proc(spawn_node: u32, nodes: []inf.Node) -> Car {
return {
fuel_level = common.FUEL_MAX,
max_speed = common.CAR_MAX_SPEED,
origin = node,
node_pos = node,
actual_pos = nodes[node].pos
origin = spawn_node,
node_pos = spawn_node,
actual_pos = nodes[spawn_node].pos
}
}