Skip to content

Commit

Permalink
When the player gets the ROE artifact (BloodStone) override the ui_au…
Browse files Browse the repository at this point in the history
…toSwitch cvar (ref #138)
  • Loading branch information
MadDeCoDeR committed Nov 26, 2023
1 parent f48a13d commit 381cea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/d3xp/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ bool idInventory::Give( idPlayer* owner, const idDict& spawnArgs, const char* st
{
idLobbyBase& lobby = session->GetActingGameStateLobbyBase();
lobbyUserID_t& lobbyUserID = gameLocal->lobbyUserIDs[owner->entityNumber];
if( lobby.GetLobbyUserWeaponAutoSwitch( lobbyUserID ) && idealWeapon != NULL && i != owner->weapon_bloodstone_active1 && i != owner->weapon_bloodstone_active2 && i != owner->weapon_bloodstone_active3 )
if( i == owner->weapon_bloodstone ||( lobby.GetLobbyUserWeaponAutoSwitch( lobbyUserID ) && idealWeapon != NULL && i != owner->weapon_bloodstone_active1 && i != owner->weapon_bloodstone_active2 && i != owner->weapon_bloodstone_active3 ))
{
idealWeapon->Set( i );
}
Expand Down

0 comments on commit 381cea4

Please sign in to comment.