From 1c4318331663b152b0b298bd2c9e5c971506a86b Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 10 Jun 2023 16:44:19 +0100 Subject: Prune some comments and tidy up other minor things --- src/ent.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ent.c') diff --git a/src/ent.c b/src/ent.c index 8dcb1f1..6329152 100644 --- a/src/ent.c +++ b/src/ent.c @@ -69,10 +69,10 @@ static struct CEntityFactoryDictionary *entfactorydict = 0; static inline bool find_entfactorydict(con_cmdcb dumpentityfactories_cb) { const uchar *insns = (const uchar *)dumpentityfactories_cb; for (const uchar *p = insns; p - insns < 64;) { - // the call to EntityFactoryDictionary() is inlined. that returns a - // static, which is lazy-inited (trivia: this was old MSVC, so it's not - // threadsafe like C++ requires nowadays). for some reason the init flag - // is set using OR, and then the instance is put in ECX to call the ctor + // EntityFactoryDictionary() is inlined, and returns a static, which is + // lazy-inited (trivia: this was old MSVC, so it's not thread-safe like + // C++ requires nowadays). for some reason the init flag is set using + // OR, and then the instance is put in ECX to call the ctor if (p[0] == X86_ORMRW && p[6] == X86_MOVECXI && p[11] == X86_CALL) { entfactorydict = mem_loadptr(p + 7); return true; -- cgit v1.2.3