General: Convert TABs to spaces.

Some files appeared to not follow their own rules, check codestyle.txt
This commit is contained in:
zaCade 2018-07-30 21:53:45 +02:00
parent 651dd9921a
commit 9676fb9852
10 changed files with 91 additions and 91 deletions

View File

@ -227,7 +227,7 @@ public OnMapEnd()
*/ */
public OnAutoConfigsBuffered() public OnAutoConfigsBuffered()
{ {
// Load map configurations. // Load map configurations.
ConfigLoad(); ConfigLoad();
} }
@ -328,7 +328,7 @@ public OnClientPutInServer(client)
/** /**
* Called once a client's saved cookies have been loaded from the database. * Called once a client's saved cookies have been loaded from the database.
* *
* @param client Client index. * @param client Client index.
*/ */
public OnClientCookiesCached(client) public OnClientCookiesCached(client)
{ {
@ -351,7 +351,7 @@ public OnClientCookiesCached(client)
* This callback is gauranteed to occur on all clients, and always * This callback is gauranteed to occur on all clients, and always
* after each OnClientPutInServer() call. * after each OnClientPutInServer() call.
* *
* @param client Client index. * @param client Client index.
* @noreturn * @noreturn
*/ */
public OnClientPostAdminCheck(client) public OnClientPostAdminCheck(client)
@ -382,13 +382,13 @@ public OnClientDisconnect(client)
/** /**
* Called when a clients movement buttons are being processed * Called when a clients movement buttons are being processed
* *
* @param client Index of the client. * @param client Index of the client.
* @param buttons Copyback buffer containing the current commands (as bitflags - see entity_prop_stocks.inc). * @param buttons Copyback buffer containing the current commands (as bitflags - see entity_prop_stocks.inc).
* @param impulse Copyback buffer containing the current impulse command. * @param impulse Copyback buffer containing the current impulse command.
* @param vel Players desired velocity. * @param vel Players desired velocity.
* @param angles Players desired view angles. * @param angles Players desired view angles.
* @param weapon Entity index of the new weapon if player switches weapon, 0 otherwise. * @param weapon Entity index of the new weapon if player switches weapon, 0 otherwise.
* @return Plugin_Handled to block the commands from being processed, Plugin_Continue otherwise. * @return Plugin_Handled to block the commands from being processed, Plugin_Continue otherwise.
*/ */
public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon) public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
{ {

View File

@ -201,7 +201,7 @@ public Action:EventPlayerSpawnPost(Handle:timer, any:client)
WeaponsOnClientSpawnPost(client); WeaponsOnClientSpawnPost(client);
SEffectsOnClientSpawnPost(client); SEffectsOnClientSpawnPost(client);
ClassOnClientSpawnPost(client); ClassOnClientSpawnPost(client);
SpawnProtectOnClientSpawnPost(client); // Must be executed after class attributes are applied. SpawnProtectOnClientSpawnPost(client); // Must be executed after class attributes are applied.
} }
/** /**

View File

@ -486,8 +486,8 @@ public ClassPreThinkPost(client)
/** /**
* Called when a clients movement buttons are being processed * Called when a clients movement buttons are being processed
* *
* @param client Index of the client. * @param client Index of the client.
* @param vel Players desired velocity. * @param vel Players desired velocity.
*/ */
Class_OnPlayerRunCmd(client, Float:vel[3]) Class_OnPlayerRunCmd(client, Float:vel[3])
{ {

View File

@ -75,11 +75,11 @@ ClassOnModulesLoaded()
*/ */
ClassOnMapStart() ClassOnMapStart()
{ {
// Clear multipliers. // Clear multipliers.
ClassResetMultiplierCache(); ClassResetMultiplierCache();
// Prepare hp regeneration module. // Prepare hp regeneration module.
ClassHealthRegenInit(); ClassHealthRegenInit();
} }
/** /**
@ -133,7 +133,7 @@ ClassClientInit(client)
* This callback is gauranteed to occur on all clients, and always * This callback is gauranteed to occur on all clients, and always
* after each OnClientPutInServer() call. * after each OnClientPutInServer() call.
* *
* @param client Client index. * @param client Client index.
* @noreturn * @noreturn
*/ */
ClassOnClientPostAdminCheck(client) ClassOnClientPostAdminCheck(client)
@ -156,7 +156,7 @@ ClassOnClientPostAdminCheck(client)
/** /**
* Called once a client's saved cookies have been loaded from the database. * Called once a client's saved cookies have been loaded from the database.
* *
* @param client Client index. * @param client Client index.
*/ */
ClassOnCookiesCached(client) ClassOnCookiesCached(client)
{ {

View File

@ -81,7 +81,7 @@ ClassOverlayOnCookiesCreate()
/** /**
* Called once a client's saved cookies have been loaded from the database. * Called once a client's saved cookies have been loaded from the database.
* *
* @param client Client index. * @param client Client index.
*/ */
ClassOverlayOnCookiesCached(client) ClassOverlayOnCookiesCached(client)
{ {

View File

@ -99,9 +99,9 @@ VoiceOnClientHuman(client)
* Set the receiver ability to listen to the sender. * Set the receiver ability to listen to the sender.
* Note: This function is from sdktools_voice, it fails if iSender is muted. * Note: This function is from sdktools_voice, it fails if iSender is muted.
* *
* @param iReceiver The listener index. * @param iReceiver The listener index.
* @param iSender The sender index. * @param iSender The sender index.
* @return True if successful otherwise false. * @return True if successful otherwise false.
*/ */
stock bool:VoiceSetClientListening(iReceiver, iSender, bool:bListen) stock bool:VoiceSetClientListening(iReceiver, iSender, bool:bListen)
{ {

View File

@ -193,31 +193,31 @@ stock ToolsSetClientAlpha(client, alpha)
/** /**
* Sets an entity's color. (This is the "get" version of SetEntityRenderColor) * Sets an entity's color. (This is the "get" version of SetEntityRenderColor)
* *
* @param client The client index. * @param client The client index.
* @return The alpha value of the client. (0-255) * @return The alpha value of the client. (0-255)
*/ */
stock ToolsGetEntityAlpha(entity) stock ToolsGetEntityAlpha(entity)
{ {
static bool:gotconfig = false; static bool:gotconfig = false;
static String:prop[32]; static String:prop[32];
if (!gotconfig) if (!gotconfig)
{ {
new Handle:gc = LoadGameConfigFile("core.games"); new Handle:gc = LoadGameConfigFile("core.games");
new bool:exists = GameConfGetKeyValue(gc, "m_clrRender", prop, sizeof(prop)); new bool:exists = GameConfGetKeyValue(gc, "m_clrRender", prop, sizeof(prop));
CloseHandle(gc); CloseHandle(gc);
if (!exists) if (!exists)
{ {
strcopy(prop, sizeof(prop), "m_clrRender"); strcopy(prop, sizeof(prop), "m_clrRender");
} }
gotconfig = true; gotconfig = true;
} }
new offset = GetEntSendPropOffs(entity, prop); new offset = GetEntSendPropOffs(entity, prop);
return GetEntData(entity, offset + 3, 1); return GetEntData(entity, offset + 3, 1);
} }
/** /**

View File

@ -185,8 +185,8 @@ VolOnRoundEnd()
*/ */
VolOnMapEnd() VolOnMapEnd()
{ {
// Make sure timers and volumes are stopped. Foreward event. // Make sure timers and volumes are stopped. Foreward event.
VolOnRoundEnd(); VolOnRoundEnd();
} }
/** /**

View File

@ -75,7 +75,7 @@ ZHPClientInit(client)
/** /**
* Called once a client's saved cookies have been loaded from the database. * Called once a client's saved cookies have been loaded from the database.
* *
* @param client Client index. * @param client Client index.
*/ */
ZHPOnCookiesCached(client) ZHPOnCookiesCached(client)
{ {

View File

@ -366,46 +366,46 @@ stock bool:ZRIsClientAdmin(client, AdminFlag:flag = Admin_Generic)
* *
* Note: The translation phrases are found in common.phrases.txt. * Note: The translation phrases are found in common.phrases.txt.
* *
* @param client Client index, or 0 for server. * @param client Client index, or 0 for server.
* @param reason COMMAND_TARGET reason. * @param reason COMMAND_TARGET reason.
*/ */
stock ZRReplyToTargetError(client, reason) stock ZRReplyToTargetError(client, reason)
{ {
switch (reason) switch (reason)
{ {
case COMMAND_TARGET_NONE: case COMMAND_TARGET_NONE:
{ {
TranslationReplyToCommand(client, "No matching client"); TranslationReplyToCommand(client, "No matching client");
} }
case COMMAND_TARGET_NOT_ALIVE: case COMMAND_TARGET_NOT_ALIVE:
{ {
TranslationReplyToCommand(client, "Target must be alive"); TranslationReplyToCommand(client, "Target must be alive");
} }
case COMMAND_TARGET_NOT_DEAD: case COMMAND_TARGET_NOT_DEAD:
{ {
TranslationReplyToCommand(client, "Target must be dead"); TranslationReplyToCommand(client, "Target must be dead");
} }
case COMMAND_TARGET_NOT_IN_GAME: case COMMAND_TARGET_NOT_IN_GAME:
{ {
TranslationReplyToCommand(client, "Target is not in game"); TranslationReplyToCommand(client, "Target is not in game");
} }
case COMMAND_TARGET_IMMUNE: case COMMAND_TARGET_IMMUNE:
{ {
TranslationReplyToCommand(client, "Unable to target"); TranslationReplyToCommand(client, "Unable to target");
} }
case COMMAND_TARGET_EMPTY_FILTER: case COMMAND_TARGET_EMPTY_FILTER:
{ {
TranslationReplyToCommand(client, "No matching clients"); TranslationReplyToCommand(client, "No matching clients");
} }
case COMMAND_TARGET_NOT_HUMAN: case COMMAND_TARGET_NOT_HUMAN:
{ {
TranslationReplyToCommand(client, "Cannot target bot"); TranslationReplyToCommand(client, "Cannot target bot");
} }
case COMMAND_TARGET_AMBIGUOUS: case COMMAND_TARGET_AMBIGUOUS:
{ {
TranslationReplyToCommand(client, "More than one client matched"); TranslationReplyToCommand(client, "More than one client matched");
} }
} }
} }
/** /**
@ -468,32 +468,32 @@ ZRBoolToString(bool:value, String:output[], maxlen)
* The seed is set automatically for each plugin. * The seed is set automatically for each plugin.
* Rewritten by MatthiasVance, thanks. * Rewritten by MatthiasVance, thanks.
* *
* @param min Min value used as lower border * @param min Min value used as lower border
* @param max Max value used as upper border * @param max Max value used as upper border
* @return Random Integer number between min and max * @return Random Integer number between min and max
*/ */
#define SIZE_OF_INT 2147483647 // without 0 #define SIZE_OF_INT 2147483647 // without 0
stock Math_GetRandomInt(min, max) stock Math_GetRandomInt(min, max)
{ {
new random = GetURandomInt(); new random = GetURandomInt();
if (random == 0) { if (random == 0) {
random++; random++;
} }
return RoundToCeil(float(random) / (float(SIZE_OF_INT) / float(max - min + 1))) + min - 1; return RoundToCeil(float(random) / (float(SIZE_OF_INT) / float(max - min + 1))) + min - 1;
} }
/** /**
* (from SMLIB) * (from SMLIB)
* Gets the parent entity of an entity. * Gets the parent entity of an entity.
* *
* @param entity Entity Index. * @param entity Entity Index.
* @return Entity Index of the parent. * @return Entity Index of the parent.
*/ */
stock Entity_GetParent(entity) stock Entity_GetParent(entity)
{ {
return GetEntPropEnt(entity, Prop_Data, "m_pParent"); return GetEntPropEnt(entity, Prop_Data, "m_pParent");
} }
/** /**