MantisBT - Zandronum
View Issue Details
0002583Zandronum[All Projects] Bugpublic2016-01-18 11:002018-09-30 21:40
Ivan 
Edward-san 
highminoralways
closedfixed 
 
2.22.2 
0002583: Ammo max amount set to 0x7FFFFFFF mess up after map ends
When you happen to have an ammo whose limit is set to 0x7FFFFFFF and you finish the map through normal means, it will show up as -1 and weird things will happen. (Ex: DnD menu doesn't recognize I have the item (clientside) but I do have the item serverside and can use it)

Here's a minimal example wad:'https://www.dropbox.com/s/p03azs8nnkoz2ge/itemmaxtest.pk3?dl=0 [^]'

Some screenshots:'http://imgur.com/a/57zJw [^]'
- Give AP 1 (amount doesn't matter)
- Exit the map through normal means that would keep your inventory intact.
- Printinv -> shows capacity as -1 instea of 0x7FFFFFFF.
No tags attached.
Issue History
2016-01-18 11:00IvanNew Issue
2016-01-18 18:24Edward-sanNote Added: 0014131
2016-01-18 18:24Edward-sanProduct Version3.0-beta =>
2016-01-18 18:47Edward-sanAssigned To => Edward-san
2016-01-18 18:47Edward-sanStatusnew => assigned
2016-01-18 18:59Edward-sanNote Added: 0014132
2016-01-18 18:59Edward-sanStatusassigned => needs review
2016-01-24 20:29cobaltStatusneeds review => needs testing
2016-01-24 20:29cobaltTarget Version => 2.2
2016-01-24 20:29cobaltDescription Updatedbug_revision_view_page.php?rev_id=8529#r8529
2016-01-24 20:29cobaltSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8531#r8531
2016-01-24 20:29cobaltNote Added: 0014186
2016-01-31 23:13Ru5tK1ngNote Added: 0014271
2016-01-31 23:27DuskStatusneeds testing => resolved
2016-01-31 23:27DuskFixed in Version => 2.2
2016-01-31 23:27DuskResolutionopen => fixed
2018-09-30 21:40Blzut3Statusresolved => closed

Notes
(0014131)
Edward-san   
2016-01-18 18:24   
It happens also in zandronum 2.x.
(0014132)
Edward-san   
2016-01-18 18:59   
'https://bitbucket.org/Torr_Samaho/zandronum-stable/pull-requests/21/ [^]'
(0014186)
cobalt   
2016-01-24 20:29   
Issue addressed by commit edfe466b741b: - Fixed: Clients did not receive the correct MaxAmount value for AmmoCapacity inventories if it was greater than 32767 after a map change (fixes 2583).
Committed by Edoardo Prezioso [edward-san] on Wednesday 31 December 1969 23:59:57

Changes in files:

 docs/zandronum-history.txt | 1 +
 src/cl_main.cpp | 2 +-
 src/sv_commands.cpp | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

(0014271)
Ru5tK1ng   
2016-01-31 23:13   
Tested with 160131-2023, and the item count was still correct after ending a level and moving to the next.