Fix sprite blocks not recalculating their selection box after reconnect.

This commit is contained in:
UnknownShadow200 2016-05-23 08:23:18 +10:00
parent 67b1fb0b4a
commit 70a6e2fe1a

View File

@ -90,6 +90,10 @@ namespace ClassicalSharp {
for( int i = 0; i < DigSounds.Length; i++ ) DigSounds[i] = SoundType.None;
for( int i = 0; i < StepSounds.Length; i++ ) StepSounds[i] = SoundType.None;
Init();
// TODO: Make this part of TerrainAtlas2D maybe?
using( FastBitmap fastBmp = new FastBitmap( game.TerrainAtlas.AtlasBitmap, true, true ) )
RecalculateSpriteBB( fastBmp );
}
public void Init() {