Skip to content

Commit b82ddf4

Browse files
committed
fix: move texture loading invocation back to where it was originally in the code flow
1 parent fd4fddd commit b82ddf4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Intersect.Client.Core/Entities/Resource.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,6 @@ public override bool Update()
138138
return false;
139139
}
140140

141-
if (_waitingForTilesets)
142-
{
143-
if (GameContentManager.Current.TilesetsLoaded)
144-
{
145-
ReloadSpriteTexture();
146-
}
147-
}
148-
149141
if (!mHasRenderBounds)
150142
{
151143
CalculateRenderBounds();
@@ -271,10 +263,12 @@ private void CalculateRenderBounds()
271263
{
272264
if (GameContentManager.Current.TilesetsLoaded)
273265
{
266+
ReloadSpriteTexture();
274267
_waitingForTilesets = false;
275268
}
276269
else
277270
{
271+
// No textures yet
278272
return;
279273
}
280274
}

0 commit comments

Comments
 (0)