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

Encapsulate WORLD::world_path into a function #23416

Merged
merged 2 commits into from Apr 13, 2018

Conversation

Projects
None yet
3 participants
@BevapDin
Copy link
Contributor

commented Apr 8, 2018

Saves us from updating it whenever the name of the world changes.

Encapsulate WORLD::world_path into a function
Saves us from updating it whenever the name of the world changes.
@@ -13760,5 +13760,5 @@ std::string game::get_player_base_save_path() const

std::string game::get_world_base_save_path() const
{
return world_generator->active_world->world_path;
return world_generator->active_world->path();

This comment has been minimized.

Copy link
@codemime

codemime Apr 8, 2018

Member

It would be nice to rename it to something like folder_path(). Just path has a too generic meaning.

@ZhilkinSerg ZhilkinSerg merged commit 00e2d13 into CleverRaven:master Apr 13, 2018

3 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage decreased (-0.06%) to 23.557%
Details
gorgon-ghprb Build finished.
Details

@BevapDin BevapDin deleted the BevapDin:lad branch Apr 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.