konquest resets player colours on startup

Bug #811580 reported by Adam Oellermann
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kdegames (Ubuntu)
New
Undecided
Unassigned

Bug Description

When Konquest is restarted, the "New Game" dialogue resets all the player colours to blue. The problem is in the source file newgamedlg.cc on line 175 - in method addPlayer, where it currently reads:

player = new Player( map, name, PlayerColors[i-2], i-1, Player::Human);

it should really read:

player = new Player( map, name, PlayerColors[players], i-1, Player::Human);
----
Kubuntu 11.04
konquest:
  Installed: 4:4.6.2-0ubuntu2

Tags: patch
Revision history for this message
Adam Oellermann (adam-oellermann) wrote :
tags: added: patch
Revision history for this message
Adam Oellermann (adam-oellermann) wrote :

Oops... missed another required change; revised patch attached. I've played a couple of games through with this patchfile, and it all seems good.

Revision history for this message
Adam Oellermann (adam-oellermann) wrote :

I missed another change - this one's been tested in a couple of games and seems to be working right!

Revision history for this message
Adam Oellermann (adam-oellermann) wrote :

OK, the last was just the output of diff - this, I think, is the actual patch format you want.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.