• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)


Commit MetaInfo

Revision8aa7be4719790f1c082916d27a0b935123f156ea (tree)
Time2022-01-20 08:21:15
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed: changing cl_skin also changed a player's scale even though P_CheckPlayerSprite already handled the skin's scaling automatically every tick.

Change Summary

Incremental Difference

diff -r b6e82bbaf62f -r 8aa7be471979 src/r_data/sprites.cpp
--- a/src/r_data/sprites.cpp Fri Jan 21 13:01:07 2022 -0500
+++ b/src/r_data/sprites.cpp Wed Jan 19 18:21:15 2022 -0500
@@ -1330,14 +1330,14 @@
13301330 players[ulIdx].mo->flags4 &= ~MF4_NOSKIN;
13311331 }
13321332
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.
13351334 if (( lSkin >= 0 ) && ( static_cast<unsigned> (lSkin) < skins.Size() ))
13361335 {
13371336 players[ulIdx].mo->sprite = skins[lSkin].sprite;
1337+/*
13381338 players[ulIdx].mo->scaleX = skins[lSkin].ScaleX;
13391339 players[ulIdx].mo->scaleY = skins[lSkin].ScaleY;
1340-/*
1340+
13411341 // Make sure the player doesn't change sprites when his state changes.
13421342 if ( lSkin == R_FindSkin( "base", players[ulIdx].CurrentPlayerClass ))
13431343 players[ulIdx].mo->flags4 |= MF4_NOSKIN;