Changeset 41b2a07554e01d8c26f5605096583d625c9d36f3

Show
Ignore:
Timestamp:
02/25/07 18:40:15 (2 years ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1172425215 +0100
git-parent:

[4f67a655e514ac544f955f39dadece834e7e05ee]

git-author:
Christopher Jung <bktheg@web.de> 1172425215 +0100
Message:

Punkte werden am Ende der Schlacht nun korrekt gesetzt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/battles/Battle.java

    rec6b86e r41b2a07  
    17401740                if( this.ally[0] != 0 ) { 
    17411741                        if( side1points > 0 ) { 
    1742                                 db.update("UPDATE ally SET wonBattles=wonBattles + $side1points WHERE id=",this.ally[0]); 
     1742                                db.update("UPDATE ally SET wonBattles=wonBattles + "+side1points+" WHERE id=",this.ally[0]); 
    17431743                        }  
    17441744                        else { 
     
    17471747                } 
    17481748                if( side1points > 0 ) { 
    1749                         db.update("UPDATE users SET wonBattles=wonBattles + $side1points WHERE id=",this.commander[0]); 
     1749                        db.update("UPDATE users SET wonBattles=wonBattles + "+side1points+" WHERE id=",this.commander[0]); 
    17501750                }  
    17511751                else { 
     
    17551755                if( this.ally[1] != 0 ) { 
    17561756                        if( side2points > 0 ) { 
    1757                                 db.update("UPDATE ally SET wonBattles=wonBattles + $side2points WHERE id=",this.ally[1]); 
     1757                                db.update("UPDATE ally SET wonBattles=wonBattles + "+side2points+" WHERE id=",this.ally[1]); 
    17581758                        }  
    17591759                        else { 
     
    17621762                } 
    17631763                if( side2points > 0 ) { 
    1764                         db.update("UPDATE ally SET wonBattles=wonBattles + $side2points WHERE id=",this.commander[1]); 
     1764                        db.update("UPDATE ally SET wonBattles=wonBattles + "+side2points+" WHERE id=",this.commander[1]); 
    17651765                }  
    17661766                else {