hedgewars/uStore.pas
changeset 10443 42dadeb6e8ae
parent 10309 e338ccbbe100
child 10510 9329dab04490
equal deleted inserted replaced
10441:d2f599997b54 10443:42dadeb6e8ae
   362 
   362 
   363 if not cOnlyStats then 
   363 if not cOnlyStats then 
   364     begin
   364     begin
   365     MakeCrossHairs;
   365     MakeCrossHairs;
   366     LoadGraves;
   366     LoadGraves;
       
   367     tmpHatSurf:= LoadDataImage(ptHats, 'Reserved/chef', ifNone);
       
   368     ChefHatTexture:= Surface2Tex(tmpHatSurf, true);
       
   369     freeTmpHatSurf();
   367     end;
   370     end;
   368     
   371     
   369 if not reload then
   372 if not reload then
   370     AddProgress;
   373     AddProgress;
   371 
   374 
   505         end
   508         end
   506     end;
   509     end;
   507 SDL_FreeSurface(MissionIcons);
   510 SDL_FreeSurface(MissionIcons);
   508 
   511 
   509 // free the textures declared in uVariables
   512 // free the textures declared in uVariables
       
   513 FreeAndNilTexture(ChefHatTexture);
   510 FreeAndNilTexture(CrosshairTexture);
   514 FreeAndNilTexture(CrosshairTexture);
   511 FreeAndNilTexture(WeaponTooltipTex);
   515 FreeAndNilTexture(WeaponTooltipTex);
   512 FreeAndNilTexture(PauseTexture);
   516 FreeAndNilTexture(PauseTexture);
   513 FreeAndNilTexture(AFKTexture);
   517 FreeAndNilTexture(AFKTexture);
   514 FreeAndNilTexture(SyncTexture);
   518 FreeAndNilTexture(SyncTexture);