mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-06-14 14:28:36 -04:00
[modding] Implement Vehicles & Fix Animations (#109)
* Train works * Fix minimap * Fix highway * Fix * Refactor train and boat * Update * Implement Trucks * Fix tanker * Finish implementing vehicles * Fix animations * Fix spawn players * Fix spawn players * Fix loading custom data --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
This commit is contained in:
@@ -22,6 +22,13 @@ void Cup::Previous() {
|
||||
}
|
||||
}
|
||||
|
||||
void Cup::SetCourse(size_t position) {
|
||||
if ((position < 0) || (position >= Courses.size())) {
|
||||
throw std::invalid_argument("Invalid course index.");
|
||||
}
|
||||
CursorPosition = position;
|
||||
}
|
||||
|
||||
Course* Cup::GetCourse() {
|
||||
return Courses[CursorPosition];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user