15-11-2008, 08:07 PM
I'm getting a wierd error when I try to enter my game.
"End With without With"
"End With without With"
Code:
' Is there an animation tile to draw?
If .Anim > 0 Then
rec.Top = (.Anim \ TILESHEET_WIDTH) * PIC_Y
rec.Bottom = rec.Top + PIC_Y
rec.Left = (.Anim Mod TILESHEET_WIDTH) * PIC_X
rec.Right = rec.Left + PIC_X
Call DDS_BackBuffer.BltFast(X * PIC_X, Y * PIC_Y, DDS_Tile, rec, DDBLTFAST_WAIT Or DDBLTFAST_SRCCOLORKEY)
End If
End If
End [color=#BF0000]With[/color]
Next Y
Next X