rs-client: refactor sprite loading methods

This commit is contained in:
ThatGamerBlue
2019-07-19 07:25:27 +01:00
parent 36d1fd4148
commit f4181265c0
13 changed files with 25 additions and 24 deletions

View File

@@ -491,13 +491,13 @@ public class Timer {
} else if (Client.titleLoadingStage == 80) {
var0 = 0;
if (Message.compass == null) {
Message.compass = class65.SpriteBuffer_tryCreateSprite(Client.archive8, UserComparator6.spriteIds.compass, 0);
Message.compass = class65.loadSprite(Client.archive8, UserComparator6.spriteIds.compass, 0);
} else {
++var0;
}
if (UserComparator4.redHintArrowSprite == null) {
UserComparator4.redHintArrowSprite = class65.SpriteBuffer_tryCreateSprite(Client.archive8, UserComparator6.spriteIds.field3823, 0);
UserComparator4.redHintArrowSprite = class65.loadSprite(Client.archive8, UserComparator6.spriteIds.field3823, 0);
} else {
++var0;
}