- took the weapon selection logic out of the WeaponSlots data and blocked all direct access to the weapon slots internals
This seriously needs to be independent from the data store and better abstracted. More work to come to move this to its proper place.
This commit is contained in:
parent
b6d0d5008e
commit
51ee623b3b
11 changed files with 286 additions and 278 deletions
|
|
@ -2631,7 +2631,7 @@ void Net_DoCommand (int type, uint8_t **stream, int player)
|
|||
int count = ReadByte(stream);
|
||||
if (slot < NUM_WEAPON_SLOTS)
|
||||
{
|
||||
players[pnum].weapons.Slots[slot].Clear();
|
||||
players[pnum].weapons.ClearSlot(slot);
|
||||
}
|
||||
for(i = 0; i < count; ++i)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue