share/hedgewars/Data/Missions/Challenge/User_Mission_-_RCPlane_Challenge.lua
changeset 14949 4c5fb1ee75b7
parent 14781 75bd27700837
equal deleted inserted replaced
14948:9d6a25239d00 14949:4c5fb1ee75b7
   442                                 loc("CHALLENGE COMPLETE"),
   442                                 loc("CHALLENGE COMPLETE"),
   443                                 loc("Congratulations!"),
   443                                 loc("Congratulations!"),
   444                                 string.format(loc("Planes used: %d"), planesUsed) .. "|" ..
   444                                 string.format(loc("Planes used: %d"), planesUsed) .. "|" ..
   445                                 "", 0, 0
   445                                 "", 0, 0
   446                                 )
   446                                 )
       
   447 			PlaySound(sound, player)
       
   448 
       
   449 			EndGame()
   447 			SetState(player, gstWinner)
   450 			SetState(player, gstWinner)
   448 			PlaySound(sound, player)
       
   449 
       
   450 
       
   451 			DismissTeam(playerTeamName)
       
   452 			EndGame()
       
   453 		end
   451 		end
   454 
   452 
   455 		if RCGear ~= nil then
   453 		if RCGear ~= nil then
   456 			SetTimer(RCGear, GetTimer(RCGear) + 10000)
   454 			SetTimer(RCGear, GetTimer(RCGear) + 10000)
   457 		end
   455 		end