Ignore:
Timestamp:
Apr 17, 2011, 10:28:20 AM (11 years ago)
Author:
Sam Hocevar
Message:

lisp: populate LispSymbol? with symbol-related methods.

File:
1 edited

Legend:

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

    r481 r484  
    153153
    154154
    155   int explo_snd=lnumber_value(symbol_value(make_find_symbol("P_EXPLODE_SND")));
    156   int space_snd=lnumber_value(symbol_value(make_find_symbol("SPACE_SND")));
    157   int zip_snd=lnumber_value(symbol_value(make_find_symbol("SHIP_ZIP_SND")));
     155  int explo_snd = lnumber_value(LispSymbol::FindOrCreate("P_EXPLODE_SND")->GetValue());
     156  int space_snd = lnumber_value(LispSymbol::FindOrCreate("SPACE_SND")->GetValue());
     157  int zip_snd = lnumber_value(LispSymbol::FindOrCreate("SHIP_ZIP_SND")->GetValue());
    158158
    159159
     
    370370    cmap[i]=pal->find_closest(i*256/32,i*256/32,i*256/32);
    371371
    372   void *end_plot=symbol_value(make_find_symbol("plot_end"));
     372  void *end_plot = LispSymbol::FindOrCreate("plot_end")->GetValue();
    373373
    374374
     
    427427  image *im=cache.img(cache.reg("art/endgame.spe","tbc",SPEC_IMAGE,1));
    428428
    429   void *to_be=symbol_value(make_find_symbol("to_be_continued"));
     429  void *to_be = LispSymbol::FindOrCreate("to_be_continued")->GetValue();
    430430  p_ref r1(to_be);
    431431
    432   void *mid_plot=symbol_value(make_find_symbol("plot_middle"));
     432  void *mid_plot = LispSymbol::FindOrCreate("plot_middle")->GetValue();
    433433  p_ref r2(mid_plot);
    434 
    435434
    436435  int dx=(xres+1)/2-im->width()/2,dy=(yres+1)/2-im->height()/2;
     
    486485  int dx=(xres+1)/2-320/2,dy=(yres+1)/2-200/2;
    487486
    488   void *end_plot=symbol_value(make_find_symbol("plot_end"));
     487  void *end_plot = LispSymbol::FindOrCreate("plot_end")->GetValue();
    489488  p_ref r2(end_plot);
    490489
Note: See TracChangeset for help on using the changeset viewer.