clean up dynamite box and fix (#1265)

issue1247
Maikel de Vries 2015-02-15 21:33:52 +01:00
parent a70433b6a7
commit 41040eebfd
12 changed files with 8 additions and 7 deletions

View File

@ -3,5 +3,4 @@ id=Fuse
Version=6,0
Category=C4D_StaticBack
Vertices=2
Picture=0,0,64,64
Line=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -76,8 +76,10 @@ func FxIntFusingTimer()
speed -= Distance(fuse_x, fuse_y, target_x, target_y);
if( (fuse_vertex == 0 && fuse_dir == -1) || (fuse_vertex == GetVertexNum()-1 && fuse_dir == +1))
{
fuse_call->~OnFuseFinished(this);
if (fuse_call) RemoveObject();
if (fuse_call)
fuse_call->~OnFuseFinished(this);
if (fuse_call)
RemoveObject();
return -1;
}
fuse_x = GetVertex(fuse_vertex, 0)*10;

View File

@ -10,6 +10,6 @@ VertexY=1,5
VertexFriction=120,120,120
Value=15
Mass=15
Picture=4,0,21,21
Picture=0,0,64,64
Rotate=1
Float=1

View File

@ -63,7 +63,7 @@ public func ControlUse(object clonk, int x, int y)
{
var pos = clonk->GetItemPos(this);
ChangeDef(Igniter);
SetGraphics("0", Fuse, 1, GFXOV_MODE_Picture);
SetGraphics("Picture", Igniter, 1, GFXOV_MODE_Picture);
clonk->UpdateAttach();
clonk->OnSlotFull(pos);
}
@ -80,7 +80,7 @@ private func UpdatePicture()
SetGraphics(Format("%d", iCount), Icon_Number, 12, GFXOV_MODE_Picture);
SetObjDrawTransform(s, 0, xoffs, 0, s, yoffs, 12);
SetGraphics(Format("%d", iCount), Fuse, 1, GFXOV_MODE_Picture);
SetGraphics(Format("%d", 6 - iCount), DynamiteBox, 1, GFXOV_MODE_Picture);
}
local fWarning;

View File

@ -29,7 +29,7 @@ protected func Initialize()
CreateObjectAbove(Fuse, 255, 675, NO_OWNER)->Connect(dyn4, dyn5);
var igniter = CreateObjectAbove(Igniter, 110, 710, NO_OWNER);
CreateObjectAbove(Fuse, 240, 685, NO_OWNER)->Connect(dyn5, igniter);
igniter->SetGraphics("0", Fuse, 1, GFXOV_MODE_Picture);
igniter->SetGraphics("Picture", Igniter, 1, GFXOV_MODE_Picture);
// Miner's hut and chest with catapult stuff.
//var hut = CreateObjectAbove(WoodenCabin, 570, 740, NO_OWNER);