From 85a4dd26837b8398dd7ea8850c898f5b26f47a61 Mon Sep 17 00:00:00 2001 From: Jesse Ruderman Date: Mon, 9 Aug 2021 02:22:12 -0700 Subject: [PATCH] Update autoplay for #221 --- devmods/autoplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devmods/autoplay.cpp b/devmods/autoplay.cpp index b68dd6fd..fd7e6280 100644 --- a/devmods/autoplay.cpp +++ b/devmods/autoplay.cpp @@ -191,7 +191,7 @@ void randomMove() // try to use a ranged orb cell *ct = cellToTarget(); eItem ti = targetRangedOrb(ct, roMouseForce); - const char *tm = (ti == eItem(-1)) ? "orb cannot be used (see message log)" : iinf[ti].name; + const char *tm = iinf[ti].name; printf("TARGET %p: %s\n", (void*)ct, tm); } }