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/gui.cpp

    r120 r123  
    9090 
    9191  if (up && !active)
    92     cash.img(u)->put_image(screen,x1,y1);
     92    cache.img(u)->put_image(screen,x1,y1);
    9393  else if (up && active)
    94     cash.img(ua)->put_image(screen,x1,y1);
     94    cache.img(ua)->put_image(screen,x1,y1);
    9595  else if (!up && !active)
    96     cash.img(d)->put_image(screen,x1,y1);
    97   else cash.img(da)->put_image(screen,x1,y1);
     96    cache.img(d)->put_image(screen,x1,y1);
     97  else cache.img(da)->put_image(screen,x1,y1);
    9898
    9999  if (act!=active && active && activate_id!=-1)
     
    127127    wm->push_event(new event(id,(char *)this));
    128128    if (S_BUTTON_PRESS_SND)
    129       cash.sfx(S_BUTTON_PRESS_SND)->play(sfx_volume);
     129      cache.sfx(S_BUTTON_PRESS_SND)->play(sfx_volume);
    130130  }
    131131}
     
    134134{
    135135  x1=x; y1=y;
    136   x2=x+cash.img(u)->width()-1;
    137   y2=y+cash.img(u)->height()-1;
     136  x2=x+cache.img(u)->width()-1;
     137  y2=y+cache.img(u)->height()-1;
    138138}
    139139
Note: See TracChangeset for help on using the changeset viewer.