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:
parent
8249802a70
commit
a761c5d380
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user