Error maxxing
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user