- fixed: When validating the crouch sprite it was assumed that both the regular and the crouch sprite were having full rotations.

This commit is contained in:
Christoph Oelckers 2014-09-13 10:08:22 +02:00
parent 1e82d72349
commit 46ec364443
1 changed files with 9 additions and 0 deletions

View File

@ -629,7 +629,16 @@ void APlayerPawn::BeginPlay ()
FString crouchspritename = sprites[crouchsprite].name;
int spritenorm = Wads.CheckNumForName(normspritename + "A1", ns_sprites);
if (spritenorm==-1)
{
spritenorm = Wads.CheckNumForName(normspritename + "A0", ns_sprites);
}
int spritecrouch = Wads.CheckNumForName(crouchspritename + "A1", ns_sprites);
if (spritecrouch==-1)
{
spritecrouch = Wads.CheckNumForName(crouchspritename + "A0", ns_sprites);
}
if (spritenorm==-1 || spritecrouch ==-1)
{