mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 14:22:13 +00:00
- 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:
parent
1e82d72349
commit
46ec364443
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue