541 {
542 int idx = slot.GetSlotIndex();
543 int mask = 1 << idx;
545 int newState = slot.GetFertilityState();
546
547
549
550
552
553 if ((
g_Game.IsServer() || !
g_Game.IsMultiplayer()) && currentState != newState)
554 {
556
558 SetSynchDirty();
559 }
560 }
void UpdateSlotTexture(int slot_index)
This should be only called on server as the selections are synced to clients in C++.