This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)
Revisión | 8aa7be4719790f1c082916d27a0b935123f156ea (tree) |
---|---|
Tiempo | 2022-01-20 08:21:15 |
Autor | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Fixed: changing cl_skin also changed a player's scale even though P_CheckPlayerSprite already handled the skin's scaling automatically every tick.
@@ -1330,14 +1330,14 @@ | ||
1330 | 1330 | players[ulIdx].mo->flags4 &= ~MF4_NOSKIN; |
1331 | 1331 | } |
1332 | 1332 | |
1333 | - // If the skin is valid, set the player's sprite to the skin's sprite, and adjust | |
1334 | - // the player's scale accordingly. | |
1333 | + // If the skin is valid, set the player's sprite to the skin's sprite. | |
1335 | 1334 | if (( lSkin >= 0 ) && ( static_cast<unsigned> (lSkin) < skins.Size() )) |
1336 | 1335 | { |
1337 | 1336 | players[ulIdx].mo->sprite = skins[lSkin].sprite; |
1337 | +/* | |
1338 | 1338 | players[ulIdx].mo->scaleX = skins[lSkin].ScaleX; |
1339 | 1339 | players[ulIdx].mo->scaleY = skins[lSkin].ScaleY; |
1340 | -/* | |
1340 | + | |
1341 | 1341 | // Make sure the player doesn't change sprites when his state changes. |
1342 | 1342 | if ( lSkin == R_FindSkin( "base", players[ulIdx].CurrentPlayerClass )) |
1343 | 1343 | players[ulIdx].mo->flags4 |= MF4_NOSKIN; |