Fix chat being moved slightly up a new texture pack is received(Thanks 123DontMessWitMe), and fix not being able to cycle fog distance forwards when view distance is past 'max fog' from EnvMapAppearance 2 packet. (Thanks again 123DontMessWitMe)

This commit is contained in:
UnknownShadow200 2016-01-19 00:13:24 +11:00
parent fd8e765b8b
commit bcd9d665cd
2 changed files with 3 additions and 2 deletions

View File

@ -208,6 +208,7 @@ namespace ClassicalSharp {
if( !game.Drawer2D.UseBitmappedChat ) return;
Dispose();
Init();
UpdateChatYOffset( true );
}
public override void OnResize( int oldWidth, int oldHeight, int width, int height ) {

View File

@ -362,7 +362,7 @@ namespace ClassicalSharp {
void CycleDistanceForwards() {
for( int i = 0; i < viewDistances.Length; i++ ) {
int dist = viewDistances[i];
if( dist > game.ViewDistance ) {
if( dist > game.UserViewDistance ) {
game.SetViewDistance( dist, true ); return;
}
}
@ -372,7 +372,7 @@ namespace ClassicalSharp {
void CycleDistanceBackwards() {
for( int i = viewDistances.Length - 1; i >= 0; i-- ) {
int dist = viewDistances[i];
if( dist < game.ViewDistance ) {
if( dist < game.UserViewDistance ) {
game.SetViewDistance( dist, true ); return;
}
}