-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TrafficDirector: put correct drivers into special cars #755
base: main
Are you sure you want to change the base?
Conversation
917bbcc
to
ca6e808
Compare
rwengine/src/ai/TrafficDirector.cpp
Outdated
enum ped_types { | ||
COP = 1, | ||
MEDIC = 5, | ||
FIREMAN = 6 | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure would I move this out of the function.. But formatting should be:
enum ped_types { | |
COP = 1, | |
MEDIC = 5, | |
FIREMAN = 6 | |
}; | |
enum ped_types { COP = 1, MEDIC = 5, FIREMAN = 6 }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to move it out, but I need to get the whole list of ped_types, I just filled few ones needed for this use, feels a bit hacky, but does work, so...
Police cars are driven by cops. Ambulances by medics. Firetrucks by firefigters. Signed-off-by: David Heidelberg <[email protected]>
ca6e808
to
9a385be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Police cars are driven by cops.
Ambulances by medics.
Firetrucks by firefigters.
Needs more love, thou now it's at least little bit correct.