Skip to content

Commit 4c8e92b

Browse files
committed
Simplify EngineSetClothingCacheTime return logic
1 parent da44836 commit 4c8e92b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -855,10 +855,7 @@ bool CLuaEngineDefs::EngineAddClothingModel(CClientDFF* pDFF, std::string strMod
855855

856856
bool CLuaEngineDefs::EngineSetClothingCacheTime(std::uint32_t timeInMs)
857857
{
858-
if (!g_pMultiplayer->SetClothingCacheTime(timeInMs))
859-
return false;
860-
861-
return true;
858+
return g_pMultiplayer->SetClothingCacheTime(timeInMs);
862859
}
863860

864861
int CLuaEngineDefs::EngineRestoreModel(lua_State* luaVM)

0 commit comments

Comments
 (0)