Skip to content

Commit

Permalink
Change player_activity::start to player_activity::start_or_resume and
Browse files Browse the repository at this point in the history
remove unnecessary include
  • Loading branch information
rsulli55 committed May 4, 2020
1 parent 9ba57ea commit 058073b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9349,7 +9349,7 @@ void Character::assign_activity( const player_activity &act, bool allow_resume )
activity = act;
}

activity.start( *this, resuming );
activity.start_or_resume( *this, resuming );

if( is_npc() ) {
cancel_stashed_activity();
Expand Down
3 changes: 1 addition & 2 deletions src/player_activity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "avatar.h"
#include "calendar.h"
#include "construction.h"
#include "debug.h"
#include "game.h"
#include "item.h"
#include "itype.h"
Expand Down Expand Up @@ -172,7 +171,7 @@ cata::optional<std::string> player_activity::get_progress_message( const avatar
get_verb().translated(), extra_info );
}

void player_activity::start( Character &who, bool resuming )
void player_activity::start_or_resume( Character &who, bool resuming )
{
if( actor && !resuming ) {
actor->start( *this, who );
Expand Down
2 changes: 1 addition & 1 deletion src/player_activity.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class player_activity
* called whenever a Character starts a new activity.
* When resuming an activity, do not call activity_actor::start
*/
void start( Character &who, bool resuming );
void start_or_resume( Character &who, bool resuming );

/**
* Performs the activity for a single turn. If the activity is complete
Expand Down

0 comments on commit 058073b

Please sign in to comment.