revise a couple of recently added comments

This commit is contained in:
PatR
2024-08-31 20:30:04 -07:00
parent dfe2619b4b
commit 4415fc2154
2 changed files with 8 additions and 7 deletions
+6 -5
View File
@@ -2634,12 +2634,13 @@ vanqsort_cmp(
} }
res = mcls1 - mcls2; /* class */ res = mcls1 - mcls2; /* class */
if (res == 0) { if (res == 0) {
/* Riders are in the same class as major demons; group Riders /* Riders are in the same class as major demons, yielding res==0
at the start of that class regardless of secondary ordering; above when both mcls1 and mcls2 are either Riders or demons or
res -1 => #1 is a Rider, #2 isn't; one of each; force Riders to be sorted before demons */
0 => both riders or both major demons;
+1 => #2 is a Rider, #1 isn't */
res = is_rider(&mons[indx2]) - is_rider(&mons[indx1]); res = is_rider(&mons[indx2]) - is_rider(&mons[indx1]);
/* res -1 => #1 is a Rider, #2 isn't;
0 => both Riders or neither;
+1 => #2 is a Rider, #1 isn't */
if (res) if (res)
break; break;
mlev1 = mons[indx1].mlevel; mlev1 = mons[indx1].mlevel;
+2 -2
View File
@@ -1515,8 +1515,8 @@ staticfn void set_wportal(void);
staticfn void mk_bubble(coordxy, coordxy, int); staticfn void mk_bubble(coordxy, coordxy, int);
staticfn void mv_bubble(struct bubble *, coordxy, coordxy, boolean); staticfn void mv_bubble(struct bubble *, coordxy, coordxy, boolean);
/* augment the Plane of Water; called from goto_level() when arriving and /* augment the Planes of Water (for bubbles) and Air (for clouds); called
moveloop_core() when on the level */ from goto_level() when arriving and moveloop_core() when on the level */
void void
movebubbles(void) movebubbles(void)
{ {