Advertisement
ZoriaRPG

Test Parser Association of Pointers Stored in Arrays

Dec 29th, 2016
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. int GRAM[214747];
  2.  
  3. const int SUBSCREEN = 501; //THe subscreen pointer.
  4.  
  5. int SubPaneY(int pane){
  6.     if ( pane == PANE_LEFT ) return GRAM[SUBSCREEN[PANE_LEFT_Y]];
  7.     else if ( pane == PANE_RIGHT ) return GRAM[SUBSCREEN[PANE_RIGHT_Y]];
  8.     else return GRAM[SUBSCREEN[PANE_CENTRE_Y]];
  9. }
  10.  
  11. ffc script testptrassoc{
  12.     void run(int pane){
  13.         bool bbb = SubPaneY(pane);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement