mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 20:29:17 +00:00
debug message in case of bad push
This commit is contained in:
parent
6a617398cb
commit
7887731377
7
game.cpp
7
game.cpp
@ -3670,6 +3670,13 @@ int pickDownDirection(cell *c, flagtype mf) {
|
||||
|
||||
template<class T>
|
||||
cell *determinePush(cellwalker who, cell *c2, int subdir, T valid) {
|
||||
if(subdir != 1 && subdir != -1) {
|
||||
subdir = 1;
|
||||
static bool first = true;
|
||||
if(first)
|
||||
first = false,
|
||||
addMessage("bad push: " + its(subdir));
|
||||
}
|
||||
cellwalker push = who;
|
||||
cwstep(push);
|
||||
int pd = push.c->type/2;
|
||||
|
Loading…
Reference in New Issue
Block a user