Fix duplicate messages being set, fix humanoid left arm being flipped horizontally.

This commit is contained in:
UnknownShadow200 2015-11-05 15:10:38 +11:00
parent 1873fedfb4
commit 1b72c67cac
2 changed files with 4 additions and 1 deletions

View File

@ -141,6 +141,8 @@ namespace ClassicalSharp {
} }
static bool IsInvalidChar( char c ) { static bool IsInvalidChar( char c ) {
bool isCP437 = Utils.ControlCharReplacements.IndexOf( c ) >= 0 ||
Utils.ExtendedCharReplacements.IndexOf( c ) >= 0;
// Make sure we're in the printable text range from 0x20 to 0x7E // Make sure we're in the printable text range from 0x20 to 0x7E
return c < ' ' || c == '&' || c > '~'; return c < ' ' || c == '&' || c > '~';
} }
@ -166,6 +168,7 @@ namespace ClassicalSharp {
allText = allText.Substring( 64 ); allText = allText.Substring( 64 );
} }
game.Chat.Send( allText, false ); game.Chat.Send( allText, false );
return;
} }
int packetsCount = 0; int packetsCount = 0;

View File

@ -23,7 +23,7 @@ namespace ClassicalSharp.Model {
Set.Hat = BuildBox( MakeBoxBounds( -4, 24, -4, 4, 32, 4 ) Set.Hat = BuildBox( MakeBoxBounds( -4, 24, -4, 4, 32, 4 )
.SetTexOrigin( 32, 0 ) .SetTexOrigin( 32, 0 )
.SetModelBounds( -4.5f, 23.5f, -4.5f, 4.5f, 32.5f, 4.5f ) ); .SetModelBounds( -4.5f, 23.5f, -4.5f, 4.5f, 32.5f, 4.5f ) );
Set.LeftArm = BuildBox( MakeBoxBounds( -8, 12, -2, -4, 24, 2 ) Set.LeftArm = BuildBox( MakeBoxBounds( -4, 12, -2, -8, 24, 2 )
.SetTexOrigin( 40, 16 ) ); .SetTexOrigin( 40, 16 ) );
Set.RightArm = BuildBox( MakeBoxBounds( 4, 12, -2, 8, 24, 2 ) Set.RightArm = BuildBox( MakeBoxBounds( 4, 12, -2, 8, 24, 2 )
.SetTexOrigin( 40, 16 ) ); .SetTexOrigin( 40, 16 ) );