mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 02:56:09 -04:00
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:
parent
fd8e765b8b
commit
bcd9d665cd
@ -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 ) {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user