Skip to content

Commit

Permalink
Fixed some issues with the new traffic messages
Browse files Browse the repository at this point in the history
  • Loading branch information
luciensadi committed Jan 23, 2025
1 parent 93bb5d4 commit fa60204
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/traffic_messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const char *_vehicle_types__ride_on[] = {
"crotch rocket",
"gas-powered skateboard",
"delivery bike",
"unicycle",
"motorized unicycle",
"escaped roomba", // 26
};
#define _NUM_VEHICLE_TYPES__RIDE_ON 27
Expand Down Expand Up @@ -296,8 +296,8 @@ const char *generate_dynamic_traffic_message__returns_new() {
break;
}

// Sometimes, add a person as the occupant.
if (!number(0, 4)) {
// Sometimes, add a person as the occupant. Always for ridden vehicles, sometimes for occupied ones.
if (on_vs_in || !number(0, 4)) {
char person_buf[1000] = { '\0' };

if (number(0, 3)) {
Expand Down

0 comments on commit fa60204

Please sign in to comment.