mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- gi->AddExcludedEpisode()
: Pass FString variable through as reference instead of by value.
This commit is contained in:
parent
974ca7bd1d
commit
2a7d0e6fe3
3 changed files with 3 additions and 3 deletions
|
@ -120,7 +120,7 @@ struct GameInterface
|
|||
virtual void LeavePortal(spritetype* viewer, int type) {}
|
||||
virtual bool GetGeoEffect(GeoEffect* eff, int viewsector) { return false; }
|
||||
virtual int Voxelize(int sprnum) { return -1; }
|
||||
virtual void AddExcludedEpisode(FString episode) {}
|
||||
virtual void AddExcludedEpisode(const FString& episode) {}
|
||||
virtual int GetCurrentSkill() { return -1; }
|
||||
virtual bool IsQAVInterpTypeValid(const FString& type) { return false; }
|
||||
virtual void AddQAVInterpProps(const int res_id, const FString& interptype, const bool loopable, const TMap<int, TArray<int>>&& ignoredata) { }
|
||||
|
|
|
@ -68,7 +68,7 @@ struct GameInterface : public ::GameInterface
|
|||
void EnterPortal(spritetype* viewer, int type) override;
|
||||
void LeavePortal(spritetype* viewer, int type) override;
|
||||
bool GetGeoEffect(GeoEffect* eff, int viewsector) override;
|
||||
void AddExcludedEpisode(FString episode) override;
|
||||
void AddExcludedEpisode(const FString& episode) override;
|
||||
int GetCurrentSkill() override;
|
||||
|
||||
};
|
||||
|
|
|
@ -62,7 +62,7 @@ enum { VERSIONCHECK = 41 };
|
|||
|
||||
static TArray<FString> exclEpisodes;
|
||||
|
||||
void GameInterface::AddExcludedEpisode(FString episode)
|
||||
void GameInterface::AddExcludedEpisode(const FString& episode)
|
||||
{
|
||||
auto s = FStringTable::MakeMacro(episode.GetChars());
|
||||
s.StripRight();
|
||||
|
|
Loading…
Reference in a new issue