ref: 40d0cf14f1ea3f9c4ce56371fa74637628f4b877
parent: 12e4be58ac76d20577e6093449aded6236d5d188
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Apr 6 09:57:54 EDT 2020
Remove invalid comments These issues are fixed in this branch
--- a/src/Bullet.cpp
+++ b/src/Bullet.cpp
@@ -1664,8 +1664,6 @@
{96, 88, 120, 112},
};
- // Note that 'bul->ani_no' can exceed the size of 'rcLeft' and 'rcRight'
-
if (bul->direct == 0)
bul->rect = rcLeft[bul->ani_no];
else
--- a/src/Caret.cpp
+++ b/src/Caret.cpp
@@ -79,8 +79,6 @@
}
}
- // Note that 'crt->ani_no' can exceed the size of 'rcLeft' and 'rcRight'
-
if (crt->direct == 0)
crt->rect = rcLeft[crt->ani_no];
else
@@ -256,8 +254,6 @@
}
}
- // Note that 'crt->ani_no' can exceed the size of rcLeft
-
crt->rect = rcLeft[crt->ani_no];
switch (crt->direct)
@@ -465,8 +461,6 @@
}
}
- // Note that 'crt->ani_no' can exceed the size of 'rect'
-
crt->rect = rect[crt->ani_no];
}
@@ -489,8 +483,6 @@
return; // Prevent UB at rcLeft[crt->ani_no] when crt->ani_no == 4
}
}
-
- // Note that 'crt->ani_no' can exceed the size of 'rcLeft'
crt->rect = rcLeft[crt->ani_no];
}
--- a/src/NpcAct120.cpp
+++ b/src/NpcAct120.cpp
@@ -591,8 +591,6 @@
}
}
- // Note that 'npc->ani_no' can exceed the size of 'rcH' and 'rcV'
-
if (npc->direct == 0)
npc->rect = rcH[npc->ani_no];
else
@@ -656,8 +654,6 @@
return; // Prevent UB at rc[npc->ani_no] when npc->ani_no == 5
}
- // Note that 'npc->ani_no' can exceed the bounds of 'rcLeft', 'rcUp', 'rcRight' and 'rcDown'
-
switch (npc->direct)
{
case 0:
@@ -714,8 +710,6 @@
}
npc->y += npc->ym;
-
- // Note that '(npc->direct * 3) + npc->ani_no' can exceed the size of 'rect'
npc->rect = rect[(npc->direct * 3) + npc->ani_no];
}
--- a/src/NpcAct140.cpp
+++ b/src/NpcAct140.cpp
@@ -759,7 +759,6 @@
break;
}
- // Note that 'npc->ani_no' can exceed the size of 'rect'
npc->rect = rect[npc->ani_no];
}
--- a/src/NpcAct180.cpp
+++ b/src/NpcAct180.cpp
@@ -1434,6 +1434,5 @@
npc->x += npc->xm;
npc->y += npc->ym;
- // Note that 'npc->ani_no' can exceed the size of 'rect'
npc->rect = rect[npc->ani_no];
}