Changeset 799695d06e0ca73e45b18aab8431659663e48b4f
- Timestamp:
- 07/11/07 22:50:37
(1 year ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1184187037 +0200
- git-parent:
[76806620b8f1505e18f2bc31bf07ba480918c120]
- git-author:
- Christopher Jung <bktheg@web.de> 1184187037 +0200
- Message:
Gebaeudegruppen (de)aktivieren gefixt
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd230b2f |
r799695d |
|
| 165 | 165 | if( building.isDeakAble() ) { |
|---|
| 166 | 166 | int count = 0; |
|---|
| | 167 | Integer[] active = base.getActive(); |
|---|
| 167 | 168 | |
|---|
| 168 | 169 | for( int i=0; i <= base.getWidth()*base.getHeight()-1 ; i++ ) { |
|---|
| 169 | 170 | |
|---|
| 170 | | if( (base.getBebauung()[i] == buildingonoff) && (base.getActive()[i] != bebstatus) ) { |
|---|
| | 171 | if( (base.getBebauung()[i] == buildingonoff) && (active[i] != bebstatus) ) { |
|---|
| 171 | 172 | if( ((bebstatus != 0) && (base.getBewohner() >= base.getArbeiter() + building.getArbeiter())) || (bebstatus == 0) ) { |
|---|
| 172 | | base.getActive()[i] = bebstatus; |
|---|
| | 173 | active[i] = bebstatus; |
|---|
| 173 | 174 | |
|---|
| 174 | 175 | count++; |
|---|
| … | … | |
| 180 | 181 | } |
|---|
| 181 | 182 | } |
|---|
| | 183 | |
|---|
| | 184 | base.setActive(active); |
|---|
| 182 | 185 | |
|---|
| 183 | 186 | if( count != 0 ) { |
|---|