511 if endTurn then |
515 if endTurn then |
512 EndTurn(true) |
516 EndTurn(true) |
513 end |
517 end |
514 racerActive = false -- newadd |
518 racerActive = false -- newadd |
515 |
519 |
516 if trackFinished and not turnSkipped then |
520 if trackFinished and not gameOver then |
517 for i=0, wpCount-1 do |
521 for i=0, wpCount-1 do |
518 SetVisualGearValues(wpCirc[i], nil, nil, 255, 255, nil, 2) |
522 SetVisualGearValues(wpCirc[i], nil, nil, 255, 255, nil, 2) |
519 end |
523 end |
520 elseif not turnSkipped then |
524 elseif not gameOver then |
521 for i=0, wpCount-1 do |
525 for i=0, wpCount-1 do |
522 SetVisualGearValues(wpCirc[i], nil, nil, 32, 32, nil, 1) |
526 SetVisualGearValues(wpCirc[i], nil, nil, 32, 32, nil, 1) |
523 end |
527 end |
524 end |
528 end |
525 end |
529 end |
698 currCount = 0 -- hopefully this solves problem |
702 currCount = 0 -- hopefully this solves problem |
699 AddAmmo(CurrentHedgehog, amAirAttack, 0) |
703 AddAmmo(CurrentHedgehog, amAirAttack, 0) |
700 gTimer = 0 |
704 gTimer = 0 |
701 |
705 |
702 -- Set the waypoints to unactive on new round |
706 -- Set the waypoints to unactive on new round |
703 for i = 0,(wpCount-1) do |
707 if not gameOver then |
704 wpActive[i] = false |
708 for i = 0,(wpCount-1) do |
705 wpCol[i] = 0xffffffff |
709 wpActive[i] = false |
706 SetVisualGearValues(wpCirc[i], wpX[i], wpY[i], 164, 224, 1, 10, 0, wpRad, 5, wpCol[i]) |
710 wpCol[i] = 0xffffffff |
|
711 SetVisualGearValues(wpCirc[i], wpX[i], wpY[i], 164, 224, 1, 10, 0, wpRad, 5, wpCol[i]) |
|
712 end |
707 end |
713 end |
708 |
714 |
709 -- Handle Starting Stage of Game |
715 -- Handle Starting Stage of Game |
710 if (gameOver == false) and (gameBegun == false) then |
716 if (gameOver == false) and (gameBegun == false) then |
711 if wpCount >= 2 then |
717 if wpCount >= 2 then |