Skip to content

Commit 4f1c9c1

Browse files
committed
Fix refresh restarting resources
refresh isn't meant to restart, just refreshall does that.
1 parent 02bc654 commit 4f1c9c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/mods/deathmatch/logic/CResourceManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ bool CResourceManager::Refresh(bool bRefreshAll, const SString strJustThisResour
184184
// Add the resource
185185
Load(!info.bIsDir, info.strAbsPath, info.strName);
186186
}
187-
else if (pResource && pResource->HasResourceChanged())
187+
else if (bRefreshAll && pResource && pResource->HasResourceChanged())
188188
{
189189
if (g_pServerInterface->IsRequestingExit())
190190
return false;

0 commit comments

Comments
 (0)