Skip to content

Commit

Permalink
Appease clang
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramza13 committed Jul 7, 2020
1 parent 5d81d50 commit 47ad0aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/weather.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,6 @@ void wet( Character &target, int amount )
target.drench( amount, drenched_parts, false );
}

/**
* Thunder.
* Flavor messages. Very wet.
*/
void weather_sound( translation sound_message, std::string sound_effect )
{
if( !g->u.has_effect( effect_sleep ) && !g->u.is_deaf() ) {
Expand Down Expand Up @@ -548,15 +544,15 @@ void handle_weather_effects( weather_type_id const w )
target_monster = spawn.target;
}

for( size_t i = 0; i < spawn.hallucination_count; i++ ) {
for( int i = 0; i < spawn.hallucination_count; i++ ) {
tripoint point;
if( g->find_nearby_spawn_point( target_character, target_monster.type->id, spawn.min_radius,
spawn.max_radius, point ) ) {
g->spawn_hallucination( point, target_monster.type->id );
spawned = true;
}
}
for( size_t i = 0; i < spawn.real_count; i++ ) {
for( int i = 0; i < spawn.real_count; i++ ) {
tripoint point;
if( g->find_nearby_spawn_point( target_character, target_monster.type->id, spawn.min_radius,
spawn.max_radius, point ) ) {
Expand Down
3 changes: 3 additions & 0 deletions src/weather.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ void glare( weather_type_id w );
int incident_sunlight( weather_type_id wtype,
const time_point &t = calendar::turn );

void weather_sound( translation sound_message, std::string sound_effect );
void wet( Character &target, int amount );

class weather_manager
{
public:
Expand Down

0 comments on commit 47ad0aa

Please sign in to comment.