mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-28 15:45:46 +03:00
Fix warning
This commit is contained in:
parent
5b72d06bfb
commit
3c4acbb046
@ -207,14 +207,13 @@ void SV_Customization(client_t *pPlayer, resource_t *pResource, qboolean bSkipPl
|
|||||||
// Creates customizations list for the current player and sends resources to other players.
|
// Creates customizations list for the current player and sends resources to other players.
|
||||||
void SV_RegisterResources(void)
|
void SV_RegisterResources(void)
|
||||||
{
|
{
|
||||||
resource_t *pResource;
|
|
||||||
client_t *pHost = host_client;
|
client_t *pHost = host_client;
|
||||||
|
|
||||||
pHost->uploading = FALSE;
|
pHost->uploading = FALSE;
|
||||||
#ifdef REHLDS_FIXES
|
#ifdef REHLDS_FIXES
|
||||||
SV_CreateCustomizationList(pHost); // FIXED: Call this function only once. It was crazy to call it for each resource available.
|
SV_CreateCustomizationList(pHost); // FIXED: Call this function only once. It was crazy to call it for each resource available.
|
||||||
#else // REHLDS_FIXES
|
#else // REHLDS_FIXES
|
||||||
for (pResource = pHost->resourcesonhand.pNext; pResource != &pHost->resourcesonhand; pResource = pResource->pNext)
|
for (resource_t *pResource = pHost->resourcesonhand.pNext; pResource != &pHost->resourcesonhand; pResource = pResource->pNext)
|
||||||
{
|
{
|
||||||
SV_CreateCustomizationList(pHost);
|
SV_CreateCustomizationList(pHost);
|
||||||
SV_Customization(pHost, pResource, TRUE);
|
SV_Customization(pHost, pResource, TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user