2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-16 00:28:20 +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); data = COM_Parse(data);
if (com_token[0] == '}') if (com_token[0] == '}')
@ -269,7 +269,7 @@ char *ED_ParseEdict(char *data, edict_t *ent)
kvd.szClassName = className; kvd.szClassName = className;
kvd.szKeyName = keyname; kvd.szKeyName = keyname;
kvd.szValue = com_token; kvd.szValue = com_token;
kvd.fHandled = 0; kvd.fHandled = FALSE;
gEntityInterface.pfnKeyValue(ent, &kvd); gEntityInterface.pfnKeyValue(ent, &kvd);
} }
} }
@ -291,7 +291,7 @@ void ED_LoadFromFile(char *data)
ent = NULL; ent = NULL;
inhibit = 0; inhibit = 0;
while (1) while (true)
{ {
data = COM_Parse(data); data = COM_Parse(data);
if (!data) if (!data)