hedgewars/uWorld.pas
changeset 4225 ce9e2b05e9c1
parent 4211 7dcbd236ca59
child 4248 e127b3d26248
equal deleted inserted replaced
4224:99c6d87df131 4225:ce9e2b05e9c1
   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