MantisBT - Zandronum
View Issue Details
0001972Zandronum[All Projects] Bugpublic2014-10-26 07:482014-10-26 09:11
Borg 
 
normalmajoralways
closedwon't fix 
MicrosoftWindowsXP/Vista/7
1.3 
 
0001972: SetAmmoCapacity() not executed in ENTER script
SetAmmoCapacity() is not executed in ENTER script in ACS on map change.
This render MaxAmount bug workaround in ACS useless.

Bug is server side only.
Please revert this code:

 // [BB] If the activator is a player, tell the clients about the changed capacity.
-if ( activator->player && NETWORK_GetState() == NETSTATE_SERVER )
+// [BB] Only bother the clients if MaxAmount has actually changed.
+if ( activator->player && NETWORK_GetState() == NETSTATE_SERVER && ( oldMaxAmount != item->MaxAmount ) )
    SERVERCOMMANDS_SetPlayerAmmoCapacity( activator->player - players, item );
No tags attached.
related to 0001868closed Torr Samaho SetAmmoCapacity is not recognized after map is finished 
Issue History
2014-10-26 07:48BorgNew Issue
2014-10-26 09:10DuskNote Added: 0010693
2014-10-26 09:10DuskRelationship addedrelated to 0001868
2014-10-26 09:11DuskStatusnew => closed
2014-10-26 09:11DuskResolutionopen => won't fix

Notes
(0010693)
Dusk   
2014-10-26 09:10   
The real bug here is 0001868. The change mentioned in the description only breaks a hacky workaround. Nothing to do here.