Changeset c0bc36490c47967a578fdea01c5544d3bed10a91

Show
Ignore:
Timestamp:
04/30/07 23:10:53 (2 years ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1177967453 +0200
git-parent:

[1d0a5078f32c953c0af7666e1ddbfdb287e56c83]

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

Verarbeitung der Waffenfabriken im Basistick gefixt

Files:

Legend:

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

    r8f1cbbd rc0bc364  
    107107                 
    108108                ContextVars vars = (ContextVars)context.getVariable(getClass(), "values"); 
     109                Integer lastUser = (Integer)context.getVariable(getClass(), "last_user"); 
    109110                 
    110111                List<Integer> removelist = new ArrayList<Integer>(); 
    111112                 
    112                 if( vars == null ) { 
     113                if( (vars == null) || (user.getID() != lastUser.intValue()) ) { 
    113114                        vars = new ContextVars(); 
    114115                        context.putVariable(getClass(), "values", vars); 
     116                        context.putVariable(getClass(), "last_user", user.getID()); 
    115117                         
    116118                        for( SQLResultRow ammo : ammolist.values() ) {