Permalink
Browse files

fix interior not being set in ClassSelection

  • Loading branch information...
oscar-broman committed Sep 18, 2012
1 parent 25c00f9 commit 1936025529675b9d19d4aed2cf0922f100f27f32
Showing with 2 additions and 3 deletions.
  1. +2 −3 gamemodes/modules/PBP/ClassSelection/callbacks/OnPlayerSpawn.inc
@@ -7,16 +7,15 @@
*/
{
- SetPlayerInterior(playerid, 0);
-
new class = this.RequestedClass[playerid];
- this.PlayerClass[playerid] = class;
this.LastClass[playerid] = class;
this.LastClassSkin[playerid] = this.Classes[class][Skin];
TextDrawDestroyVar(this.WeaponsInfo[playerid]);
+ SetPlayerInterior(playerid, this.SpawnLocations[this.Classes[class][SpawnLocation]][Interior]);
+
if (this.Classes[class][World] != 0)
SetPlayerVirtualWorld(playerid, this.Classes[class][World]);
else if (this.SpawnLocations[this.Classes[class][SpawnLocation]][World] != 0)

0 comments on commit 1936025

Please sign in to comment.