2016-07-26 15:18:32 +03:00
|
|
|
#include "precompiled.h"
|
|
|
|
|
|
|
|
bool is_yes(const char* str)
|
|
|
|
{
|
2016-07-26 19:31:47 +03:00
|
|
|
return !Q_strcmp(str, "true") || !Q_strcmp(str, "yes") || !Q_strcmp(str, "1");
|
2016-07-26 15:18:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
bool is_no(const char* str)
|
|
|
|
{
|
2016-07-26 19:31:47 +03:00
|
|
|
return !Q_strcmp(str, "false") || !Q_strcmp(str, "no") || !Q_strcmp(str, "0");
|
2016-07-26 15:18:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
char* ENTITY_KEYVALUE(edict_t* entity, char* key)
|
|
|
|
{
|
2016-07-26 19:31:47 +03:00
|
|
|
return INFOKEY_VALUE(GET_INFOKEYBUFFER(entity), key);
|
2016-07-26 15:18:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
const char* LOCALINFO(char* key)
|
|
|
|
{
|
2016-07-26 19:31:47 +03:00
|
|
|
return ENTITY_KEYVALUE(NULL, key);
|
2016-07-26 15:18:32 +03:00
|
|
|
}
|