Closed bierdosenhalter closed 1 year ago
Ahah. Weird. Is this broken or dead code?
i assume someone wanted to make sure targetOrPickup is a valid TLHState, but afterwards it is assigned anyway
It uses the same enum on the server, it's serialized as 2 bits, and there's also a value 3 now, so looks like dead code to me. Can safely remove that ugly switch with ugly numbers. :)
Feel free to send a PR.
assignment in the switch and after the switch (also the slot assignment could be done in the action factory i guess)