equal
deleted
inserted
replaced
2866 updateCursorCoords() |
2866 updateCursorCoords() |
2867 end |
2867 end |
2868 |
2868 |
2869 -- Display the X and Y coordinates of the cursor while the cursor is active |
2869 -- Display the X and Y coordinates of the cursor while the cursor is active |
2870 function updateCursorCoords() |
2870 function updateCursorCoords() |
2871 if band(GetState(CurrentHedgehog), gstChooseTarget) ~= 0 and CursorX ~= NoPointX then |
2871 if band(GetState(CurrentHedgehog), gstChooseTarget) ~= 0 and CursorX ~= NO_CURSOR then |
2872 local x1, y = 12, 24 |
2872 local x1, y = 12, 24 |
2873 if tagCursorX then |
2873 if tagCursorX then |
2874 DeleteVisualGear(tagCursorX) |
2874 DeleteVisualGear(tagCursorX) |
2875 end |
2875 end |
2876 tagCursorX = AddVisualGear(-div(ScreenWidth, 2)+x1, y, vgtHealthTag, CursorX, true) |
2876 tagCursorX = AddVisualGear(-div(ScreenWidth, 2)+x1, y, vgtHealthTag, CursorX, true) |
3783 function onNewTurn() |
3783 function onNewTurn() |
3784 |
3784 |
3785 -- regardless of our other ammo, give stuff that is useful for editing |
3785 -- regardless of our other ammo, give stuff that is useful for editing |
3786 SetEditingWeps(100) |
3786 SetEditingWeps(100) |
3787 if GetHogLevel(CurrentHedgehog) == 0 then |
3787 if GetHogLevel(CurrentHedgehog) == 0 then |
3788 SetTurnTimeLeft(cMaxTurnTime) |
3788 SetTurnTimeLeft(MAX_TURN_TIME) |
3789 else |
3789 else |
3790 SkipTurn() -- skip the computer's turn |
3790 SkipTurn() -- skip the computer's turn |
3791 end |
3791 end |
3792 |
3792 |
3793 end |
3793 end |