hedgewars/uWorld.pas
changeset 4482 34393349f96e
parent 4393 883b979697e4
child 4626 775f43e90383
equal deleted inserted replaced
4481:0d73e7db3d59 4482:34393349f96e
   139 ScreenFade:= sfFromBlack;
   139 ScreenFade:= sfFromBlack;
   140 ScreenFadeValue:= sfMax;
   140 ScreenFadeValue:= sfMax;
   141 ScreenFadeSpeed:= 1;
   141 ScreenFadeSpeed:= 1;
   142 
   142 
   143 // modified mine timers?
   143 // modified mine timers?
   144 if cMinesTime <> 3 then
   144 if cMinesTime <> 3000 then
   145     begin
   145     begin
   146     if cMinesTime = 0 then
   146     if cMinesTime = 0 then
   147         g:= AddGoal(g, gfAny, gidNoMineTimer)
   147         g:= AddGoal(g, gfAny, gidNoMineTimer)
   148     else if cMinesTime < 0 then
   148     else if cMinesTime < 0 then
   149         g:= AddGoal(g, gfAny, gidRandomMineTimer)
   149         g:= AddGoal(g, gfAny, gidRandomMineTimer)
   150     else
   150     else
   151         g:= AddGoal(g, gfAny, gidMineTimer, cMinesTime);
   151         g:= AddGoal(g, gfAny, gidMineTimer, cMinesTime div 1000);
   152     end;
   152     end;
   153 
   153 
   154 // if the string has been set, show it for (default timeframe) seconds
   154 // if the string has been set, show it for (default timeframe) seconds
   155 if g <> '' then ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 1, 0);
   155 if g <> '' then ShowMission(trgoal[gidCaption], trgoal[gidSubCaption], g, 1, 0);
   156 
   156