Changeset 60
- Timestamp:
- Mar 2, 2008, 4:41:48 PM (15 years ago)
- Location:
- abuse/trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/ant.cpp
r58 r60 49 49 } 50 50 51 int ant_congestion(game_object *o)51 static int ant_congestion(game_object *o) 52 52 { 53 53 for (game_object *d=current_level->first_active_object();d;d=d->next_active) … … 58 58 } 59 59 60 int ant_dodge(game_object *o)60 static int ant_dodge(game_object *o) 61 61 { 62 62 if (o->lvars[ANT_need_to_dodge]==1) -
abuse/trunk/src/cache.cpp
r58 r60 663 663 } 664 664 665 void cache_cleanup2()665 static void cache_cleanup2() 666 666 { unlink(lfname); 667 667 } 668 668 669 void cache_cleanup(int ret, void *arg)669 static void cache_cleanup(int ret, void *arg) 670 670 { unlink(lfname); 671 671 } -
abuse/trunk/src/config.cpp
r56 r60 32 32 player_keys *key_map = NULL; 33 33 34 int binding_for_player( int player )34 static int binding_for_player( int player ) 35 35 { 36 36 char tmp[40]; -
abuse/trunk/src/cop.cpp
r56 r60 199 199 200 200 201 int player_fire_weapon(game_object *o, int type, game_object *target, int angle, signed char *fire_off)201 static int player_fire_weapon(game_object *o, int type, game_object *target, int angle, signed char *fire_off) 202 202 { 203 203 -
abuse/trunk/src/dev.cpp
r56 r60 195 195 } 196 196 197 void show_object_number (game_object *who)197 static void show_object_number (game_object *who) 198 198 { 199 199 int total=0,number=0; … … 214 214 215 215 216 void single_render()216 static void single_render() 217 217 { 218 218 // enlarge clip area … … 226 226 } 227 227 228 void double_render()228 static void double_render() 229 229 { 230 230 small_render_on=1; … … 330 330 } 331 331 332 void load_dev_icons()332 static void load_dev_icons() 333 333 { 334 334 char const *artf="art/dev.spe"; … … 545 545 } 546 546 547 light_source *find_light(int32_t x, int32_t y)547 static light_source *find_light(int32_t x, int32_t y) 548 548 { 549 549 image *i=cash.img(light_buttons[0]); … … 707 707 } 708 708 709 int get_omenu_item(int x)709 static int get_omenu_item(int x) 710 710 { 711 711 for (int i=0;i<total_objects;i++) … … 3367 3367 } 3368 3368 3369 int get_char_mem(int type, int print)3369 static int get_char_mem(int type, int print) 3370 3370 { 3371 3371 int t=0; -
abuse/trunk/src/endgame.cpp
r56 r60 40 40 extern int text_draw(int y, int x1, int y1, int x2, int y2, char const *buf, JCFont *font, uint8_t *cmap, char color); 41 41 42 mask_line *make_mask_lines(image *mask, int map_width)42 static mask_line *make_mask_lines(image *mask, int map_width) 43 43 { 44 44 mask_line *p=(mask_line *)jmalloc(mask->height()*sizeof(mask_line),"mask_line"); -
abuse/trunk/src/game.cpp
r56 r60 1716 1716 1717 1717 extern int start_edit; 1718 1719 void single_render();1720 void double_render();1721 1718 1722 1719 void game::get_input() -
abuse/trunk/src/lisp.cpp
r58 r60 33 33 #endif 34 34 35 /* To bypass the whole garbage collection issue of lisp I am going to have seperate spaces36 where lisp objects can reside. Compiled code and gloabal varibles will reside in permanant37 space. Eveything else will reside in tmp space which gets thrown away after completion of eval.38 system functions reside in permant space.39 */35 /* To bypass the whole garbage collection issue of lisp I am going to have 36 * separate spaces where lisp objects can reside. Compiled code and gloabal 37 * varibles will reside in permanant space. Eveything else will reside in 38 * tmp space which gets thrown away after completion of eval. system 39 * functions reside in permant space. */ 40 40 41 41 bFILE *current_print_file=NULL; -
abuse/trunk/src/menu.cpp
r58 r60 52 52 for (y=y1;y<=y2;y++) 53 53 { 54 u nsigned char*sl=screen->scan_line(y)+x1;54 uint8_t *sl=screen->scan_line(y)+x1; 55 55 for (x=x1;x<=x2;x++,sl++) 56 56 { 57 u nsigned char *paddr=(unsigned char*)pal->addr()+(*sl)*3;58 u nsigned charr=((*(paddr++))-r_to)*percent/256+r_to;59 u nsigned charg=((*(paddr++))-g_to)*percent/256+g_to;60 u nsigned charb=((*(paddr++))-b_to)*percent/256+b_to;57 uint8_t *paddr=(uint8_t *)pal->addr()+(*sl)*3; 58 uint8_t r=((*(paddr++))-r_to)*percent/256+r_to; 59 uint8_t g=((*(paddr++))-g_to)*percent/256+g_to; 60 uint8_t b=((*(paddr++))-b_to)*percent/256+b_to; 61 61 *sl=color_table->lookup_color((r)>>3,(g)>>3,(b)>>3); 62 62 } … … 78 78 for (y=y1;y<=y2;y++) 79 79 { 80 u nsigned char*sl=screen->scan_line(y)+x1;80 uint8_t *sl=screen->scan_line(y)+x1; 81 81 for (x=x1;x<=x2;x++,sl++) 82 82 { 83 u nsigned char *paddr=(unsigned char*)pal->addr()+(*sl)*3;84 u nsigned charr=(*(paddr++))*amount/256;85 u nsigned charg=(*(paddr++))*amount/256;86 u nsigned charb=(*(paddr++))*amount/256;83 uint8_t *paddr=(uint8_t *)pal->addr()+(*sl)*3; 84 uint8_t r=(*(paddr++))*amount/256; 85 uint8_t g=(*(paddr++))*amount/256; 86 uint8_t b=(*(paddr++))*amount/256; 87 87 *sl=color_table->lookup_color((r)>>3,(g)>>3,(b)>>3); 88 88 }
Note: See TracChangeset
for help on using the changeset viewer.