Skip to content

Commit

Permalink
Remove a dead override that is causing an inheritance conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingranade committed Dec 7, 2024
1 parent c4c4fea commit 1467dc6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/talker.h
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,6 @@ class talker: virtual public const_talker
virtual computer *get_computer() {
return nullptr;
}
virtual void set_pos( tripoint ) {}
virtual void set_pos( tripoint_bub_ms ) {}
virtual void update_missions( const std::vector<mission *> & ) {}
virtual void set_str_max( int ) {}
Expand Down
10 changes: 5 additions & 5 deletions src/talker_character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ tripoint_abs_omt talker_character_const::global_omt_location() const
return me_chr_const->global_omt_location();
}

void talker_character::set_pos( tripoint new_pos )
{
me_chr->setpos( new_pos );
}

int talker_character_const::get_cur_hp( const bodypart_id &bp ) const
{
return me_chr_const->get_hp( bp );
Expand Down Expand Up @@ -135,6 +130,11 @@ dealt_damage_instance talker_character_const::deal_damage( Creature *source, bod
return source->deal_damage( source, bp, dam );
}

void talker_character::set_pos( tripoint_bub_ms new_pos )
{
me_chr->setpos( new_pos );
}

void talker_character::set_str_max( int value )
{
me_chr->str_max = value;
Expand Down
2 changes: 1 addition & 1 deletion src/talker_character.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class talker_character: virtual public talker
return me_chr;
}

void set_pos( tripoint new_pos ) override;
void set_pos( tripoint_bub_ms new_pos ) override;

// stats, skills, traits, bionics, and magic
void set_str_max( int value ) override;
Expand Down

0 comments on commit 1467dc6

Please sign in to comment.