Changeset 3c1407da291d98d30afa2740f0ad0b5b5362e232

Show
Ignore:
Timestamp:
05/01/07 16:45:26 (2 years ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1178030726 +0200
git-parent:

[78720d1e62c0263a8e420d03fe4b1f881758f77a]

git-author:
Christopher Jung <bktheg@web.de> 1178030726 +0200
Message:

0-Produktionen sollten nun nicht mehr erstellt werden

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/bases/Waffenfabrik.java

    rc0bc364 r3c1407d  
    508508                                        if( removelist.contains(aid) ) { 
    509509                                                producelist.remove(i); 
     510                                                i--; 
    510511                                                continue;        
    511512                                        } 
     
    513514                                        if( (aid == 0) || (ammoCount <= 0) ) { 
    514515                                                producelist.remove(i); 
     516                                                i--; 
    515517                                                continue; 
    516518                                        } 
     
    523525                                                entry = true; 
    524526                                        } 
    525                                         producelist.set(i, aid+"="+ammoCount); 
     527                                        if( ammoCount > 0 ) { 
     528                                                producelist.set(i, aid+"="+ammoCount); 
     529                                        } 
     530                                        else { 
     531                                                producelist.remove(i); 
     532                                                i--; 
     533                                        } 
    526534                                } 
    527535                                if( !entry ) {