Ignore:
Timestamp:
May 16, 2011, 2:37:35 AM (11 years ago)
Author:
Sam Hocevar
Message:

game: make the scattered line functions use vec2i.

File:
1 edited

Legend:

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

    r668 r672  
    8686uint8_t chatting_enabled=0;
    8787
    88 extern void scatter_line(int x1, int y1, int x2, int y2, int c, int s);
    89 extern void ascatter_line(int x1, int y1, int x2, int y2, int c1, int c2, int s);
    9088extern void show_end();
    9189
     
    19701968      vec2i pos1 = the_game->GameToMouse(vec2i(x1, y1), current_view);
    19711969      vec2i pos2 = the_game->GameToMouse(vec2i(x2, y2), current_view);
    1972       scatter_line(pos1.x, pos1.y, pos2.x, pos2.y, c, s);
     1970      ScatterLine(pos1, pos2, c, s);
    19731971      return 1;
    19741972
     
    20232021      vec2i pos1 = the_game->GameToMouse(vec2i(x1, y1), current_view);
    20242022      vec2i pos2 = the_game->GameToMouse(vec2i(x2, y2), current_view);
    2025       ascatter_line(pos1.x, pos1.y, pos2.x, pos2.y, c1, c2, s);
     2023      AScatterLine(pos1, pos2, c1, c2, s);
    20262024      return 1;
    20272025
Note: See TracChangeset for help on using the changeset viewer.