2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 23:25:45 +03:00

Small refactoring in pr_edict.

This commit is contained in:
Lev 2017-12-15 20:23:36 +05:00
parent 8249802a70
commit a761c5d380

View File

@ -212,7 +212,7 @@ char *ED_ParseEdict(char *data, edict_t *ent)
}
}
while (1)
while (true)
{
data = COM_Parse(data);
if (com_token[0] == '}')
@ -269,7 +269,7 @@ char *ED_ParseEdict(char *data, edict_t *ent)
kvd.szClassName = className;
kvd.szKeyName = keyname;
kvd.szValue = com_token;
kvd.fHandled = 0;
kvd.fHandled = FALSE;
gEntityInterface.pfnKeyValue(ent, &kvd);
}
}
@ -291,7 +291,7 @@ void ED_LoadFromFile(char *data)
ent = NULL;
inhibit = 0;
while (1)
while (true)
{
data = COM_Parse(data);
if (!data)