player_gui.c
changeset 4702 5179f9adc5b3
parent 4647 348ce824c439
child 4709 eff35edfb653
equal deleted inserted replaced
4701:773b12043ef8 4702:5179f9adc5b3
   652 		uint32 dis = 0;
   652 		uint32 dis = 0;
   653 
   653 
   654 		if (!IsWindowOfPrototype(w, _other_player_company_widgets)) {
   654 		if (!IsWindowOfPrototype(w, _other_player_company_widgets)) {
   655 			AssignWidgetToWindow(w, (p->location_of_house != 0) ? _my_player_company_bh_widgets : _my_player_company_widgets);
   655 			AssignWidgetToWindow(w, (p->location_of_house != 0) ? _my_player_company_bh_widgets : _my_player_company_widgets);
   656 
   656 
   657 			if (!_networking) SETBIT(w->hidden_state, 11); // hide company-password widget
   657 			SetWindowWidgetHiddenState(w, 11, !_networking); // Hide company-password widget
   658 		} else {
   658 		} else {
   659 			if (p->location_of_house == 0) SETBIT(dis, 7);
   659 			if (p->location_of_house == 0) SETBIT(dis, 7);
   660 
   660 
   661 			if (_patches.allow_shares) { /* shares are allowed */
   661 			if (_patches.allow_shares) { /* shares are allowed */
   662 				/* If all shares are owned by someone (none by nobody), disable buy button */
   662 				/* If all shares are owned by someone (none by nobody), disable buy button */