Advertisement
RCAProduction

Untitled

Jul 2nd, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. int Simulation::pn_junction_sprk(int x, int y, int pt)
  2. {
  3.     int r = pmap[y][x];
  4.     if ((r & 0xFF) != pt)
  5.         return 0;
  6.     r >>= 8;
  7.     if (parts[r].type != pt)
  8.         return 0;
  9.     if (parts[r].life != 0)
  10.         return 0;
  11.  
  12.     parts[r].ctype = pt;
  13.     part_change_type(r,x,y,PT_SPRK);
  14.     parts[r].life = 4;
  15.     return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement