From 089fc010abe439aea154813e3e31bc9477a84308 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Mon, 23 Jun 2014 15:55:47 -0400 Subject: Store the maximum player file tries in a constant --- src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/player.cpp') diff --git a/src/player.cpp b/src/player.cpp index a52385f20..0d506ec99 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -297,7 +297,7 @@ void RemotePlayer::save(std::string savedir) savedir += DIR_DELIM; std::string path = savedir + m_name; - for (u32 i = 0; i < 1000; i++) { + for (u32 i = 0; i < PLAYER_FILE_ALTERNATE_TRIES; i++) { if (!fs::PathExists(path)) { // Open file and serialize std::ostringstream ss(std::ios_base::binary); -- cgit v1.2.3