static final void method115() {
	int i = Class328_Sub1.onscreenGpiOffset;
	int[] is = Class286_Sub7.onscreenGpiList;
	int i_112_ = ((Class348_Sub51) BitmapTable.aClass348_Sub51_3959)
			 .aClass239_Sub13_7236.method1776(-32350);
	boolean bool = i_112_ == 1 && i > 200 || i_112_ == 0 && i > 50;
	for (int i_113_ = 0; i_113_ < i; i_113_++) {
	    Player class318_sub1_sub3_sub3_sub2
		= ClassicLoadingScreen.onscreenPlayers[is[i_113_]];
	    if (!class318_sub1_sub3_sub3_sub2.method2457((byte) -90))
		((Mob) class318_sub1_sub3_sub3_sub2)
		    .anInt10285
		    = -1;
	    else if (((Player)
		      class318_sub1_sub3_sub3_sub2)
		     .aBoolean10551)
		((Mob) class318_sub1_sub3_sub3_sub2)
		    .anInt10285
		    = -1;
	    else {
		class318_sub1_sub3_sub3_sub2.method2409((byte) -126);
		if ((((Entity) class318_sub1_sub3_sub3_sub2)
		     .aShort8743) < 0
		    || (((Entity) class318_sub1_sub3_sub3_sub2)
			.aShort8750) < 0
		    || (((Entity) class318_sub1_sub3_sub3_sub2)
			.aShort8751) >= Class367_Sub4.mapSizeX
		    || (((Entity) class318_sub1_sub3_sub3_sub2)
			.aShort8747) >= Class348_Sub40_Sub3.mapSizeY)
		    ((Mob) class318_sub1_sub3_sub3_sub2)
			.anInt10285
			= -1;
		else {
		    ((Player)
		     class318_sub1_sub3_sub3_sub2).aBoolean10521
			= (((Mob)
			    class318_sub1_sub3_sub3_sub2).aBoolean10213
			   ? bool : false);
		    if (class318_sub1_sub3_sub3_sub2
			== Class132.localPlayer)
			((Mob)
			 class318_sub1_sub3_sub3_sub2).anInt10285
			    = 2147483647;
		    else {
			int i_114_ = 0;
			if (!((Mob)
			      class318_sub1_sub3_sub3_sub2).aBoolean10309)
			    i_114_++;
			if (((Mob)
			     class318_sub1_sub3_sub3_sub2).anInt10223
			    > Class367_Sub11.logicCycle)
			    i_114_ += 2;
			i_114_ += 5 - class318_sub1_sub3_sub3_sub2
					  .method2436((byte) 101) << 2;
			if (((Player)
			     class318_sub1_sub3_sub3_sub2)
			    .aBoolean10554)
			    i_114_ += 512;
			else {
			    if (Class37.anInt495 == 0)
				i_114_ += 32;
			    else
				i_114_ += 128;
			    i_114_ += 256;
			}
			((Mob)
			 class318_sub1_sub3_sub3_sub2).anInt10285
			    = i_114_ + 1;
		    }
		}
	    }
	}
	for (int i_115_ = 0; i_115_ < Class150.anInt2057; i_115_++) {
	    Npc class318_sub1_sub3_sub3_sub1
		= (((Class348_Sub22) (Class348_Sub22)
		    Class282.aClass356_3654.get((long) (EntityPacket
							       .anIntArray1233
							       [i_115_])))
		   .aClass318_Sub1_Sub3_Sub3_Sub1_6859);
	    if (!class318_sub1_sub3_sub3_sub1.method2445((byte) -4)
		|| !(((Npc)
		      class318_sub1_sub3_sub3_sub1)
			 .definition.method796
		     (Mob.varbitHandler, 18627)))
		((Mob) class318_sub1_sub3_sub3_sub1)
		    .anInt10285
		    = -1;
	    else {
		class318_sub1_sub3_sub3_sub1.method2409((byte) -118);
		if ((((Entity) class318_sub1_sub3_sub3_sub1)
		     .aShort8743) < 0
		    || (((Entity) class318_sub1_sub3_sub3_sub1)
			.aShort8750) < 0
		    || (((Entity) class318_sub1_sub3_sub3_sub1)
			.aShort8751) >= Class367_Sub4.mapSizeX
		    || (((Entity) class318_sub1_sub3_sub3_sub1)
			.aShort8747) >= Class348_Sub40_Sub3.mapSizeY)
		    ((Mob) class318_sub1_sub3_sub3_sub1)
			.anInt10285
			= -1;
		else {
		    int i_116_ = 0;
		    if (!((Mob)
			  class318_sub1_sub3_sub3_sub1).aBoolean10309)
			i_116_++;
		    if (((Mob)
			 class318_sub1_sub3_sub3_sub1).anInt10223
			> Class367_Sub11.logicCycle)
			i_116_ += 2;
		    i_116_ += 5 - class318_sub1_sub3_sub3_sub1
				      .method2436((byte) 82) << 2;
		    if (Class37.anInt495 == 0) {
			if (((NpcDefinition) (((Npc)
					 class318_sub1_sub3_sub3_sub1)
					.definition))
			    .aBoolean1362)
			    i_116_ += 64;
			else
			    i_116_ += 128;
		    } else if (Class37.anInt495 == 1) {
			if (((NpcDefinition) (((Npc)
					 class318_sub1_sub3_sub3_sub1)
					.definition))
			    .aBoolean1362)
			    i_116_ += 32;
			else
			    i_116_ += 64;
		    }
		    if (((NpcDefinition) (((Npc)
				     class318_sub1_sub3_sub3_sub1)
				    .definition))
			.aBoolean1345)
			i_116_ += 1024;
		    else if (!((NpcDefinition) (((Npc)
					   class318_sub1_sub3_sub3_sub1)
					  .definition)).aBoolean1381)
			i_116_ += 256;
		    ((Mob) class318_sub1_sub3_sub3_sub1)
			.anInt10285
			= i_116_ + 1;
		}
	    }
	}
	for (int i_117_ = 0; i_117_ < Class348_Sub27.aClass302Array6897.length;
	     i_117_++) {
	    Class302 class302 = Class348_Sub27.aClass302Array6897[i_117_];
	    if (class302 != null) {
		if (((Class302) class302).anInt3840 == 1) {
		    Class348_Sub22 class348_sub22
			= ((Class348_Sub22)
			   (Class282.aClass356_3654.get
			    ((long) ((Class302) class302).anInt3833)));
		    if (class348_sub22 != null) {
			Npc class318_sub1_sub3_sub3_sub1
			    = (((Class348_Sub22) class348_sub22)
			       .aClass318_Sub1_Sub3_Sub3_Sub1_6859);
			if (((Mob)
			     class318_sub1_sub3_sub3_sub1).anInt10285
			    >= 0)
			    ((Mob)
			     class318_sub1_sub3_sub3_sub1).anInt10285
				+= 2048;
		    }
		} else if (((Class302) class302).anInt3840 == 10) {
		    Player class318_sub1_sub3_sub3_sub2
			= (ClassicLoadingScreen.onscreenPlayers
			   [((Class302) class302).anInt3833]);
		    if (class318_sub1_sub3_sub3_sub2 != null
			&& (class318_sub1_sub3_sub3_sub2
			    != Class132.localPlayer)
			&& ((Mob)
			    class318_sub1_sub3_sub3_sub2).anInt10285 >= 0)
			((Mob)
			 class318_sub1_sub3_sub3_sub2).anInt10285
			    += 2048;
		}
	    }
	}
    }