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

fix: Fixed the message given to the player when using the light switch. #5795

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/iexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,11 +860,11 @@
map &here = get_map();
const auto flag = here.has_flag_furn( "L_OFF", examp ) ? "L_OFF" : "L_ON";

add_msg( _( here.furn( examp ).obj().message ) );

for( const auto &light_loc : here.find_furnitures_with_flag_in_omt( examp, flag ) ) {
here.furn_set( light_loc, here.get_furn_transforms_into( light_loc ) );
};

add_msg( _( here.furn( examp ).obj().message ) );
}

/**
Expand Down Expand Up @@ -4256,7 +4256,7 @@
gas_units = 0;

for( const tripoint &tmp : here.points_in_radius( center, SEEX * 2 ) ) {
if( here.ter( tmp ) != ter_str_id( "t_gas_tank" ) ) {

Check warning on line 4259 in src/iexamine.cpp

View workflow job for this annotation

GitHub Actions / build

performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
continue;
}

Expand Down
Loading