Slide 10
Slide 10 text
10
// Updates the way speed limit of the tile of the given position
void update_speed_limit(coord3d pos, uint16_t speed) {
tile_t* tile = world()->get_tile(pos);
if(tile==NULL) {
return;
}
way_t* way = tile->get_way();
if(way==NULL) {
return;
}
way->set_speed_limit(speed);
}