--- deliantra/server/random_maps/treasure.C 2010/03/28 22:29:50 1.51 +++ deliantra/server/random_maps/treasure.C 2010/04/11 00:34:06 1.52 @@ -436,8 +436,8 @@ { object *the_monster = GET_MAP_OB (map, lx, ly); - for (; the_monster != NULL && (!QUERY_FLAG (the_monster, FLAG_MONSTER)); the_monster = the_monster->above); - if (the_monster && QUERY_FLAG (the_monster, FLAG_MONSTER)) + for (; the_monster != NULL && (!the_monster->flag [FLAG_MONSTER]); the_monster = the_monster->above); + if (the_monster && the_monster->flag [FLAG_MONSTER]) return the_monster; } } @@ -475,8 +475,8 @@ object *the_monster = GET_MAP_OB (map, x, y); /* check off this point */ - for (; the_monster != NULL && (!QUERY_FLAG (the_monster, FLAG_ALIVE)); the_monster = the_monster->above); - if (the_monster && QUERY_FLAG (the_monster, FLAG_ALIVE)) + for (; the_monster != NULL && (!the_monster->flag [FLAG_ALIVE]); the_monster = the_monster->above); + if (the_monster && the_monster->flag [FLAG_ALIVE]) { theMonsterToFind = the_monster; return theMonsterToFind;