Overweight can't eat sandvich very sad

Bug #553780 reported by L
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gang Garrison 2
Fix Released
High
Unassigned

Bug Description

Me and psycho thinks maybe a class check isn't working properly or something. So basically you can't right click and eat sandvich, even after a new round starts, death, or class switch

Revision history for this message
MedO (smaxein) wrote :

I looked for a bit, but didn't find the cause yet. More details would be helpful in nailing down the cause, e.g. what game mode / server it happened on, if it also happens when you host yourself, and if other special stuff (building as engineer) doesn't work either.

Revision history for this message
L (sharkbait261) wrote :

Haven't seeing it occur again, granted haven't been using overweight; will do more testing later.

IIRC it was arena and I was not the host and I do believe a game mode changed allowed me once again to eat.

Revision history for this message
MedO (smaxein) wrote :

I checked the code path again and found a possible cause: humiliation on the server is not properly reset to false after a round end, but it is on the clients. I don't know yet how this happens or if it's really the cause, but analysing the code thoroughly left that as the only reasonable soure of the problem, and simulating the situation leads to the described behaviour.

Changed in gg2:
importance: Undecided → High
Revision history for this message
Chris P. Bacon (sfraser0204) wrote :

I have confirmed humiliation is being reset server and client side when a new arena round starts. I can't recreate this bug. Any more info?

Revision history for this message
L (sharkbait261) wrote :

No more info than that seems to happen at random

Revision history for this message
MedO (smaxein) wrote :

I managed to reproduce it: Humiliation isn't reset server-side when the map is changed. So, if the game mode changes from Arena to something else those players who were humiliated on round end won't be able to omnomnom. Resetting humiliation for all players when loading a new map will probably fix this, but IMO we could put a bit more thought into this.

The current system is really not good, it relies on client side checks for humiliation and stores the humiliated flag for every player, which is unneccessary. Maybe we should add Team objects and make humiliated a property of those instead.

Changed in gg2:
status: New → In Progress
MedO (smaxein)
Changed in gg2:
status: In Progress → Triaged
MedO (smaxein)
Changed in gg2:
status: Triaged → Fix Committed
MedO (smaxein)
Changed in gg2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.