mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 19:33:20 +00:00
Refactor special type to enum
This commit is contained in:
parent
89b08a279f
commit
98eed2f79b
5 changed files with 50 additions and 33 deletions
|
@ -39,9 +39,9 @@ public Action Command_InstaSpecial(int client, int args) {
|
|||
ReplyToTargetError(client, target_count);
|
||||
return Plugin_Handled;
|
||||
}
|
||||
int specialType = GetSpecialType(arg2);
|
||||
SpecialType specialType = GetSpecialType(arg2);
|
||||
static float pos[3];
|
||||
if(specialType == -1) {
|
||||
if(specialType == Special_Invalid) {
|
||||
ReplyToCommand(client, "Unknown special \"%s\"", arg2);
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
@ -108,9 +108,9 @@ public Action Command_InstaSpecialFace(int client, int args) {
|
|||
ReplyToTargetError(client, target_count);
|
||||
return Plugin_Handled;
|
||||
}
|
||||
int specialType = GetSpecialType(arg2);
|
||||
SpecialType specialType = GetSpecialType(arg2);
|
||||
static float pos[3];
|
||||
if(specialType == -1) {
|
||||
if(specialType == Special_Invalid) {
|
||||
ReplyToCommand(client, "Unknown special \"%s\"", arg2);
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue