DEADSOFTWARE

fixed texture switch bug AGAIN
[d2df-sdl.git] / src / game / g_netmsg.pas
index ce4238a69d454b185a3fc0f57a08ec292a865e30..b98681b1c42dd705a623edf16a4cb2d1f280b76c 100644 (file)
@@ -2364,17 +2364,9 @@ begin
   TP := g_Map_PanelByGUID(PGUID);
   if (TP <> nil) then
   begin
-    if Loop = 0 then
-    begin
-      // switch texture
-      TP.SetTexture(Tex, Loop);
-      TP.SetFrame(Fr, Cnt);
-    end
-    else
-    begin
-      // looped or non-looped animation
-      TP.NextTexture(Loop);
-    end;
+    // switch texture
+    TP.SetTexture(Tex, Loop);
+    TP.SetFrame(Fr, Cnt);
   end;
 end;