1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

debug message in case of bad push

This commit is contained in:
Zeno Rogue 2017-12-03 20:01:30 +01:00
parent 6a617398cb
commit 7887731377

View File

@ -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;