hedgewars/uWorld.pas
changeset 4210 caa9b08990eb
parent 4208 dd54999c2822
child 4211 7dcbd236ca59
equal deleted inserted replaced
4209:f133a26e05dd 4210:caa9b08990eb
   147 ScreenFade:= sfFromBlack;
   147 ScreenFade:= sfFromBlack;
   148 ScreenFadeValue:= sfMax;
   148 ScreenFadeValue:= sfMax;
   149 ScreenFadeSpeed:= 1;
   149 ScreenFadeSpeed:= 1;
   150 
   150 
   151 // modified mine timers?
   151 // modified mine timers?
   152 if cMinesTime <> 3 then
   152 if cMinesTime <> 3000 then
   153     begin
   153     begin
   154     if cMinesTime = 0 then
   154     if cMinesTime = 0 then
   155         g:= AddGoal(g, gfAny, gidNoMineTimer)
   155         g:= AddGoal(g, gfAny, gidNoMineTimer)
   156     else if cMinesTime < 0 then
   156     else if cMinesTime < 0 then
   157         g:= AddGoal(g, gfAny, gidRandomMineTimer)
   157         g:= AddGoal(g, gfAny, gidRandomMineTimer)
   158     else
   158     else
   159         g:= AddGoal(g, gfAny, gidMineTimer, cMinesTime);
   159         g:= AddGoal(g, gfAny, gidMineTimer, cMinesTime div 1000);
   160     end;
   160     end;
   161 
   161 
   162 // if the string has been set, show it for (default timeframe) seconds
   162 // if the string has been set, show it for (default timeframe) seconds
   163 if g <> '' then ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 1, 0);
   163 if g <> '' then ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 1, 0);
   164 
   164