#778: New feature: Challenges
---------------------------+------------------------------------------------
 Reporter:  Per            |              Owner:                  
     Type:  enhancement    |             Status:  new             
 Priority:  major          |          Milestone:  2.3             
Component:  other          |            Version:  svn/trunk       
 Keywords:  Challenge GUI  |   Operating_system:  All/Non-Specific
Blockedby:                 |           Blocking:                  
---------------------------+------------------------------------------------

Comment(by i-NoD):

 On a second thought a simple switch will sufficiently resolve the issue:
                 switch(iniparser_getint(dict, "challenge:Power",
 game.power))
                 {
                 case 0:
                         game.power = LEV_LOW;
                         break;
                 case 2:
                         game.power = LEV_HI;
                         break;
                 case 1:
                 default:
                         game.power = LEV_MED;
                 }

-- 
Ticket URL: <http://developer.wz2100.net/ticket/778#comment:3>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Resurrection Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to