Ignore:
Timestamp:
Mar 18, 2008, 12:05:08 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Cleaned up cache.cpp.
  • Renamed stupid "cash" variable into "cache".
  • Rename cache_list and crc_manager into CacheList? and CrcManager?.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/loadgame.cpp

    r120 r123  
    4444  {
    4545    sprintf(name,"nums%04d.pcx",i+1);
    46     save_buts[i]=cash.reg("art/icons.spe",name,SPEC_IMAGE,1);
     46    save_buts[i]=cache.reg("art/icons.spe",name,SPEC_IMAGE,1);
    4747  }
    4848}
     
    5959  ico_button *buts[MAX_SAVE_GAMES];
    6060  int y = 0, i;
    61   int ih=cash.img(save_buts[0])->height();
     61  int ih=cache.img(save_buts[0])->height();
    6262  int x=0;
    6363  for (i=0;i<total_saved;i++,y+=ih)
     
    9292  if (last_free) return last_free;    // if there are any slots not created yet...
    9393       
    94   int w=cash.img(save_buts[0])->width();
     94  int w=cache.img(save_buts[0])->width();
    9595  int mx=last_demo_mx-w/2;
    9696  if((unsigned)(mx + w + 10) > xres) mx = xres - w - 10;
     
    202202
    203203        int i;
    204 /*  int ih=cash.img(save_buts[0])->height();
     204/*  int ih=cache.img(save_buts[0])->height();
    205205  ico_button *buts[MAX_SAVE_GAMES];
    206206  int y=0;
Note: See TracChangeset for help on using the changeset viewer.