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/seq.hpp

    r57 r123  
    3030  int last_frame(short &current) { current--; if (current<0) { current=total-1; return 0; } return 1; }
    3131  trans_image  *get_frame(short current, int direction)
    32    { if (direction>0) return cash.fig(seq[current])->forward;
    33                  else return cash.fig(seq[current])->backward; }
    34   figure *get_figure(short current) { return cash.fig(seq[current]); }
     32   { if (direction>0) return cache.fig(seq[current])->forward;
     33                 else return cache.fig(seq[current])->backward; }
     34  figure *get_figure(short current) { return cache.fig(seq[current]); }
    3535  int cache_in();
    36   int x_center(short current) { return (short) (cash.fig(seq[current])->xcfg); }
     36  int x_center(short current) { return (short) (cache.fig(seq[current])->xcfg); }
    3737  int length() { return total; }
    38   int get_advance(int current) { return cash.fig(seq[current])->advance; }
     38  int get_advance(int current) { return cache.fig(seq[current])->advance; }
    3939  int size();
    4040  ~sequence();
Note: See TracChangeset for help on using the changeset viewer.