In the event someone @su'd into a connected guest & disconnected while
someone is still connected to that guest the guest would be destroyed.
(cherry picked from commit
1a6241bacf0623d0f497f1a95c2ecaa29f6c57be)
division_cost. [RLB]
* Quotas were not being checked properely before a division
received objects into their division. [RLB]
+ * In the event two descriptors were connected to a Guest, and
+ one disconnected. Possible through possesing a Guest using @su.
+ Guest was destroyed even though it was connected. [RLB]
}
if (!Dark(player))
flag_broadcast(0, "MONITOR", "%s %s", T("GAME:"), tbuf1);
- if(Guest(player)) { /* queue for destruction */
+ if(Guest(player) && !Connected(player)) { /* queue for destruction */
set_flag_internal(player, "GOING");
set_flag_internal(player, "GOING_TWICE");
}