Remove g.monstermoves
It's redundant with g.moves, so there is no more need for it. Way, way back, it looks like g.moves and g.monstermoves can and did desync, where g.moves would track the amount of moves the player had gotten (and would therefore increase faster if the player were hasted) and g.monstermoves would track the amount of monster move cycles, aka turns. But this has not been the case for a long time, and they both increment together in the same location in allmain.c. There are no longer any cases where they will not be the same value. This is a save-breaking change because it changes struct instance_globals, but I have not updated the editlevel in this commit.
This commit is contained in:
@@ -967,9 +967,9 @@ movemon(void)
|
||||
mon->isgd flag so that dmonsfree() will get rid of mon) */
|
||||
if (mtmp->isgd && !mtmp->mx) {
|
||||
/* parked at <0,0>; eventually isgd should get set to false */
|
||||
if (g.monstermoves > mtmp->mlstmv) {
|
||||
if (g.moves > mtmp->mlstmv) {
|
||||
(void) gd_move(mtmp);
|
||||
mtmp->mlstmv = g.monstermoves;
|
||||
mtmp->mlstmv = g.moves;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
@@ -1273,7 +1273,7 @@ meatobj(struct monst* mtmp) /* for gelatinous cubes */
|
||||
while ((otmp3 = otmp->cobj) != 0) {
|
||||
obj_extract_self(otmp3);
|
||||
if (otmp->otyp == ICE_BOX && otmp3->otyp == CORPSE) {
|
||||
otmp3->age = g.monstermoves - otmp3->age;
|
||||
otmp3->age = g.moves - otmp3->age;
|
||||
start_corpse_timeout(otmp3);
|
||||
}
|
||||
(void) mpickobj(mtmp, otmp3);
|
||||
|
||||
Reference in New Issue
Block a user