equal
deleted
inserted
replaced
127 |
127 |
128 int j = -1; |
128 int j = -1; |
129 int i = 0, k = 0; |
129 int i = 0, k = 0; |
130 for(; i < m_numItems; ++i) { |
130 for(; i < m_numItems; ++i) { |
131 if (i == 6) continue; |
131 if (i == 6) continue; |
132 if (i == 52) continue; // Disable structures for now |
|
133 if (k % 4 == 0) ++j; |
132 if (k % 4 == 0) ++j; |
134 SelWeaponItem * swi = new SelWeaponItem(true, i, currentState[i].digitValue(), QImage(":/res/ammopic.png"), QImage(":/res/ammopicgrey.png"), this); |
133 SelWeaponItem * swi = new SelWeaponItem(true, i, currentState[i].digitValue(), QImage(":/res/ammopic.png"), QImage(":/res/ammopicgrey.png"), this); |
135 weaponItems[i].append(swi); |
134 weaponItems[i].append(swi); |
136 p1Layout->addWidget(swi, j, k % 4); |
135 p1Layout->addWidget(swi, j, k % 4); |
137 |
136 |