summaryrefslogtreecommitdiffhomepage
path: root/src/ent.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-06-10 16:44:19 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-06-10 16:51:02 +0100
commit1c4318331663b152b0b298bd2c9e5c971506a86b (patch)
treea402681cb84b491819ba5018525c16340110fd4d /src/ent.c
parent602a18977d500ad068fd63fbedcafb630c29ee72 (diff)
Prune some comments and tidy up other minor things
Diffstat (limited to 'src/ent.c')
-rw-r--r--src/ent.c8
1 files changed, 4 insertions, 4 deletions
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;