mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-03 19:27:54 +00:00
determinePush now accepts movei instead of c
This commit is contained in:
4
game.cpp
4
game.cpp
@@ -402,7 +402,9 @@ EX void pushThumper(const movei& mi) {
|
||||
cto->wparam = th->wparam;
|
||||
}
|
||||
|
||||
EX bool canPushThumperOn(cell *tgt, cell *thumper, cell *player) {
|
||||
EX bool canPushThumperOn(movei mi, cell *player) {
|
||||
cell *thumper = mi.s;
|
||||
cell *tgt = mi.t;
|
||||
if(among(thumper->wall, waRichDie, waHappyDie) && ctof(tgt))
|
||||
return false;
|
||||
if(tgt->wall == waBoat || tgt->wall == waStrandedBoat) return false;
|
||||
|
Reference in New Issue
Block a user