Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int initd[8]; int initd32[8*32]; initd32_fullmap[8*32*128];
- void GetRemoteFFCInitD(int map_id, int screen_id, int ffc_slot, int ptr)
- {
- mapdata md = Game->LoadMapData(map_id, screen_id);
- for ( int q = 0; q < 8; ++q ) ptr[q] = md->GetFFCInitD(ffc_slot,q);
- }
- //GetRemoteFFCInitD(1,6,1,initd); //Stores all FFC InitD[] 1 on map 1, screen 5, for FFC ID 1 into pointer *initd
- //GetRemoteFFCInitD(1,5,initd32) //Stores the InitD for ALL FFCs on a given screen to *initd32
- void GetRemoteFFCInitD(int map_id, int screen_id, int ptr)
- {
- mapdata md = Game->LoadMapData(map_id, screen_id);
- int q; int last_q = 8;
- for ( int ff_index = 1; ff_index < 33; ++q )
- {
- for ( q < last_q; ++q ) ptr[q] = md->GetFFCInitD(ffc_slot,q);
- last_q += 8;
- }
- }
- //GetRemoteFFCInitD(1,initd32_fullmap) //Stores the InitD for all 32 ffcs on every one of the 128
- //screens on a specific map into *initd32_fullmap
- void GetRemoteFFCInitD(int map_id, int ptr)
- {
- int q; int last_q = 8; int scr;
- for ( ; scr < 128; ++scr )
- {
- mapdata md = Game->LoadMapData(map_id, scr);
- for ( int ff_index = 1; ff_index < 33; ++q )
- {
- for ( q < last_q; ++q ) ptr[q] = md->GetFFCInitD(ffc_slot,q);
- last_q += 8;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement