DEADSOFTWARE

New implementation of module Items, *.cfg files now deprecated
[cavecraft.git] / src / Player.mpsrc
index b41c8e3b7ff82cfcc4eda09aa5e8cbb6f7f2895b..947adf9cbd706749e7dd07d8b950b446f7087312 100644 (file)
@@ -42,7 +42,7 @@ interface
 \r
 implementation\r
 \r
-  uses func, phy, vars, Canvas, drop, items, jsr75i, inv;\r
+  uses func, phy, vars, Canvas, drop, jsr75i, inv, Items;\r
 \r
   const\r
     PLAYER_W=8;\r
@@ -188,9 +188,9 @@ implementation
       DrawImage(playerBody[posi], x - camx, y - camy);\r
       DrawImage(playerLegs[posi, animLegs], x - 2 - camx, y + 20 - camy);\r
 \r
-      if animHand = 0 then DrawSmallItem(Inv.GetItem(invslot), x - camx, y + 14 - camy);\r
-      else if posi = POSI_RIGHT then DrawSmallItem(Inv.GetItem(invslot), x + 10 - camx, y + 5 - camy + animHand);\r
-      else if posi = POSI_LEFT then DrawSmallItem(Inv.GetItem(invslot), x - 10 - camx, y + 5 - camy + animHand);\r
+      if animHand = 0 then Items.DrawSmall(Inv.GetItem(invslot), x - camx, y + 14 - camy);\r
+      else if posi = POSI_RIGHT then Items.DrawSmall(Inv.GetItem(invslot), x + 10 - camx, y + 5 - camy + animHand);\r
+      else if posi = POSI_LEFT then Items.DrawSmall(Inv.GetItem(invslot), x - 10 - camx, y + 5 - camy + animHand);\r
 \r
       if (animHand = 0) or (posi = POSI_RIGHT) then DrawImage(playerHand[posi, animHand], x + 2 - camx, y + 8 - camy);\r
       else DrawImage(playerHand[posi, animHand], x - 6 - camx, y + 8 - camy);\r