Skip to content

Commit

Permalink
Merge pull request #36897 from Qrox/remote-veh-speed
Browse files Browse the repository at this point in the history
Fix vehicle speed overlaps player speed when using remote vehicle controls
  • Loading branch information
ZhilkinSerg committed Jan 10, 2020
2 parents b5bcbd5 + 250e32e commit 49b37b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ static void draw_health_classic( avatar &u, const catacurses::window &w )
}

// speed
if( !u.in_vehicle ) {
if( !veh ) {
mvwprintz( w, point( 21, 5 ), u.get_speed() < 100 ? c_red : c_white,
_( "Spd " ) + to_string( u.get_speed() ) );
nc_color move_color = u.movement_mode_is( CMM_WALK ) ? c_white : move_mode_color( u );
Expand Down

0 comments on commit 49b37b7

Please sign in to comment.