equal
deleted
inserted
replaced
147 int numact; |
147 int numact; |
148 uint buttons = GetMaskOfTownActions(&numact, _local_player, t); |
148 uint buttons = GetMaskOfTownActions(&numact, _local_player, t); |
149 |
149 |
150 SetVScrollCount(w, numact + 1); |
150 SetVScrollCount(w, numact + 1); |
151 |
151 |
152 if (WP(w, def_d).data_1 != -1 && !HasBit(buttons, WP(w,def_d).data_1)) |
152 if (WP(w, def_d).data_1 != -1 && !HasBit(buttons, WP(w, def_d).data_1)) |
153 WP(w, def_d).data_1 = -1; |
153 WP(w, def_d).data_1 = -1; |
154 |
154 |
155 w->SetWidgetDisabledState(6, WP(w, def_d).data_1 == -1); |
155 w->SetWidgetDisabledState(6, WP(w, def_d).data_1 == -1); |
156 |
156 |
157 { |
157 { |