File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -255,9 +255,9 @@ void dead (){
255255  SHOW_CURSOR ();
256256  etime = clock ();
257257  //  system ("clear");
258-   printf  (" \033 [31m Boom! You lose! Used %lf sec. \033 [0m\n " ,  double (etime-stime)/CLOCKS_PER_SEC *  1000 );
258+   printf  (" \033 [31m Boom! You lose!\033 [0m\n " 
259259  freopen  (" /tmp/tminesweeper-tmp" " w" 
260-   printf  (" User %s lose the game. Used %lf sec. \n " user ,  double (etime-stime)/CLOCKS_PER_SEC *  1000 );
260+   printf  (" User %s lose the game.\n " user );
261261  system  (" echo $(cat /tmp/tminesweeper-tmp) >> $HOME/.local/share/tminesweeper/log" 
262262  exit  (0 );
263263}
@@ -478,6 +478,7 @@ int StartGame()
478478
479479int  main  (int  argc, char * argv[])
480480{
481+   srand ((int )time (NULL ));
481482  if  (argc > 1 )
482483  {
483484    if  (strcmp  (argv[1 ], " init" 0 )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments