From 86aa76b8c51b8445ef6b3d76ff7efb6d49ff8c19 Mon Sep 17 00:00:00 2001 From: dwsJason Date: Sat, 1 Sep 2018 14:07:10 -0400 Subject: [PATCH] Fix issue boulder not properly chasing me, more sign extension stuff --- src/e_them.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e_them.c b/src/e_them.c index 2f381fb..2a6f480 100644 --- a/src/e_them.c +++ b/src/e_them.c @@ -596,7 +596,7 @@ e_them_t3_action2(U8 e) * else switch to next step. */ ent_ents[e].step_count++; - x = ent_ents[e].x + ent_mvstep[ent_ents[e].step_no].dx; + x = ent_ents[e].x + ((S16)(ent_mvstep[ent_ents[e].step_no].dx)); /* check'n save */ if (x > 0 && x < 0xe8) {