DEADSOFTWARE

fixed typo in trigger caching; Anower Station is REALLY working now
[d2df-sdl.git] / src / game / g_triggers.pas
index 2d19853372178e21d863f10c8f39d9d521ccca57..88e51347a9ef53678adcbdf23bd8e4f0c8b45f16 100644 (file)
@@ -2470,7 +2470,7 @@ begin
           // Îïðåäåëÿåì èçìåíÿåìûå èì òðèããåðû:
           for b := 0 to High(gTriggers) do
           begin
-            if g_Collide(tgctX, tgctY, tgctWidth, tgctHeight, gTriggers[b].X, gTriggers[b].Y,
+            if g_Collide(tgcTX, tgcTY, tgcTWidth, tgcTHeight, gTriggers[b].X, gTriggers[b].Y,
                gTriggers[b].Width, gTriggers[b].Height) and
                ((b <> a) or (tgcWait > 0)) then
             begin // Can be self-activated, if there is Data.Wait