Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

okias
Copy link
Contributor

@okias okias commented Dec 11, 2024

Police cars are driven by cops.
Ambulances by medics.
Firetrucks by firefigters.

Needs more love, thou now it's at least little bit correct.

@okias okias force-pushed the 241211-fix-special-drivers branch from 917bbcc to ca6e808 Compare December 11, 2024 05:59
rwengine/src/ai/TrafficDirector.cpp Outdated Show resolved Hide resolved
rwengine/src/ai/TrafficDirector.cpp Outdated Show resolved Hide resolved
Comment on lines 98 to 102
enum ped_types {
COP = 1,
MEDIC = 5,
FIREMAN = 6
};
Copy link
Collaborator

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:

Suggested change
enum ped_types {
COP = 1,
MEDIC = 5,
FIREMAN = 6
};
enum ped_types { COP = 1, MEDIC = 5, FIREMAN = 6 };

Copy link
Contributor Author

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...

rwengine/src/ai/TrafficDirector.hpp Outdated Show resolved Hide resolved
rwengine/src/ai/TrafficDirector.cpp Outdated Show resolved Hide resolved
Police cars are driven by cops.
Ambulances by medics.
Firetrucks by firefigters.

Signed-off-by: David Heidelberg <[email protected]>
@okias okias force-pushed the 241211-fix-special-drivers branch from ca6e808 to 9a385be Compare December 11, 2024 07:21
Copy link
Collaborator

@Lihis Lihis left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants