From 89d9a43b68473f205806b79128b2fad7dc1980e1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 22 Jan 2017 12:26:05 +0100 Subject: [PATCH] - fixed local variable having the same name as a member in Strife's inquisitor. --- wadsrc/static/zscript/strife/inquisitor.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wadsrc/static/zscript/strife/inquisitor.txt b/wadsrc/static/zscript/strife/inquisitor.txt index 5c15f4af7..c1265b474 100644 --- a/wadsrc/static/zscript/strife/inquisitor.txt +++ b/wadsrc/static/zscript/strife/inquisitor.txt @@ -143,9 +143,9 @@ class Inquisitor : Actor A_PlaySound ("inquisitor/jump", CHAN_ITEM, 1, true); AddZ(64); A_FaceTarget (); - speed = Speed * (2./3); - VelFromAngle(speed); - double dist = DistanceBySpeed(target, speed); + let localspeed = Speed * (2./3); + VelFromAngle(localspeed); + double dist = DistanceBySpeed(target, localspeed); Vel.Z = (target.pos.z - pos.z) / dist; reactiontime = 60; bNoGravity = true;