From a761c5d380b08953bb9e9bcfeb60904addb6ee62 Mon Sep 17 00:00:00 2001 From: Lev Date: Fri, 15 Dec 2017 20:23:36 +0500 Subject: [PATCH] Small refactoring in pr_edict. --- rehlds/engine/pr_edict.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rehlds/engine/pr_edict.cpp b/rehlds/engine/pr_edict.cpp index 7ad128c..c8d7dcc 100644 --- a/rehlds/engine/pr_edict.cpp +++ b/rehlds/engine/pr_edict.cpp @@ -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)