584 begin |
590 begin |
585 PrvInactive:= AllInactive; |
591 PrvInactive:= AllInactive; |
586 AllInactive:= true; |
592 AllInactive:= true; |
587 |
593 |
588 if (StepSoundTimer > 0) and (StepSoundChannel < 0) then |
594 if (StepSoundTimer > 0) and (StepSoundChannel < 0) then |
589 begin |
|
590 WriteLnToConsole('playsteps ...'); |
|
591 StepSoundChannel:= LoopSound(sndSteps) |
595 StepSoundChannel:= LoopSound(sndSteps) |
592 end |
|
593 else if (StepSoundTimer = 0) and (StepSoundChannel > -1) then |
596 else if (StepSoundTimer = 0) and (StepSoundChannel > -1) then |
594 begin |
597 begin |
595 WriteLnToConsole('stopsteps ...'); |
|
596 StopSound(StepSoundChannel); |
598 StopSound(StepSoundChannel); |
597 StepSoundChannel:= -1; |
599 StepSoundChannel:= -1; |
598 end; |
600 end; |
599 |
601 |
600 if StepSoundTimer > 0 then |
602 if StepSoundTimer > 0 then |
1633 gtSeduction: if Gear^.Pos >= 14 then DrawSprite(sprSeduction, hwRound(Gear^.X) - 16 + WorldDx, hwRound(Gear^.Y) - 16 + WorldDy, 0); |
1635 gtSeduction: if Gear^.Pos >= 14 then DrawSprite(sprSeduction, hwRound(Gear^.X) - 16 + WorldDx, hwRound(Gear^.Y) - 16 + WorldDy, 0); |
1634 gtWatermelon: DrawRotatedf(sprWatermelon, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, 0, Gear^.DirAngle); |
1636 gtWatermelon: DrawRotatedf(sprWatermelon, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, 0, Gear^.DirAngle); |
1635 gtMelonPiece: DrawRotatedf(sprWatermelon, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 1, 0, Gear^.DirAngle); |
1637 gtMelonPiece: DrawRotatedf(sprWatermelon, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 1, 0, Gear^.DirAngle); |
1636 gtHellishBomb: DrawRotated(sprHellishBomb, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle); |
1638 gtHellishBomb: DrawRotated(sprHellishBomb, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle); |
1637 gtEvilTrace: if Gear^.State < 8 then DrawSprite(sprEvilTrace, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, Gear^.State); |
1639 gtEvilTrace: if Gear^.State < 8 then DrawSprite(sprEvilTrace, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, Gear^.State); |
|
1640 gtBirdy: DrawTextureF(SpritesData[sprBirdy].Texture, 1 - Gear^.Timer / 500, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, ((Gear^.Pos shr 6) or (RealTicks shr 8)) mod 2, Gear^.Tag, 75, 75); |
1638 end; |
1641 end; |
1639 if Gear^.RenderTimer and (Gear^.Tex <> nil) then DrawCentered(hwRound(Gear^.X) + 8 + WorldDx, hwRound(Gear^.Y) + 8 + WorldDy, Gear^.Tex); |
1642 if Gear^.RenderTimer and (Gear^.Tex <> nil) then DrawCentered(hwRound(Gear^.X) + 8 + WorldDx, hwRound(Gear^.Y) + 8 + WorldDy, Gear^.Tex); |
1640 Gear:= Gear^.NextGear |
1643 Gear:= Gear^.NextGear |
1641 end; |
1644 end; |
1642 end; |
1645 end; |