haveMount: check specifically for worm-type monsters
This commit is contained in:
parent
4799f7c5f7
commit
0530c1dc69
2
game.cpp
2
game.cpp
|
@ -503,7 +503,7 @@ EX bool sameMonster(cell *c1, cell *c2) {
|
||||||
EX eMonster haveMount() {
|
EX eMonster haveMount() {
|
||||||
for(cell *pc: player_positions()) {
|
for(cell *pc: player_positions()) {
|
||||||
eMonster m = pc->monst;
|
eMonster m = pc->monst;
|
||||||
if(m) return m;
|
if(isWorm(m)) return m;
|
||||||
}
|
}
|
||||||
return moNone;
|
return moNone;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue