Refactor special type to enum

This commit is contained in:
Jackzie 2022-02-18 12:07:11 -06:00
parent 89b08a279f
commit 98eed2f79b
No known key found for this signature in database
GPG key ID: 76DF30177DC69DB4
5 changed files with 50 additions and 33 deletions

View file

@ -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;
}