Merge branch 'master' into Mario/wepent_experimental
authorMario <mario@smbclan.net>
Sat, 24 Dec 2016 21:26:47 +0000 (07:26 +1000)
committerMario <mario@smbclan.net>
Sat, 24 Dec 2016 21:26:47 +0000 (07:26 +1000)
1  2 
qcsrc/common/physics/player.qc
qcsrc/common/vehicles/sv_vehicles.qc
qcsrc/common/vehicles/vehicle/bumblebee.qc
qcsrc/common/weapons/weapon/porto.qc
qcsrc/server/bot/default/havocbot/havocbot.qc
qcsrc/server/client.qc
qcsrc/server/impulse.qc
qcsrc/server/portals.qc

Simple merge
index 491962b67a5f74d14f193375de0cc4c49c7022e9,9c8d05ce4e0fef38a8ecd06999c923f290d69804..1bbc18d9c21eb448546897752b1d59b2b398fa37
@@@ -803,15 -804,10 +804,15 @@@ void vehicles_exit(entity vehic, bool e
                player.alpha                    = 1;
                player.PlayerPhysplug   = func_null;
                player.vehicle                  = NULL;
-               player.view_ofs         = STAT(PL_VIEW_OFS, NULL);
+               player.view_ofs         = STAT(PL_VIEW_OFS, player);
                player.event_damage     = PlayerDamage;
                player.hud                              = HUD_NORMAL;
 -              PS(player).m_switchweapon = vehic.m_switchweapon;
 +              for(int slot = 0; slot < MAX_WEAPONSLOTS; ++ slot)
 +              {
 +                      .entity weaponentity = weaponentities[slot];
 +                      player.(weaponentity).m_switchweapon = vehic.(weaponentity).m_switchweapon;
 +                      delete(vehic.(weaponentity)); // no longer needed
 +              }
                player.last_vehiclecheck = time + 3;
                player.vehicle_enter_delay = time + 2;
  
Simple merge
Simple merge
Simple merge
Simple merge