Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case COMBOTDM:
- {
- int pos = (ri->d[0])/10000;
- int sc = (ri->d[2]/10000);
- int m = (ri->d[1]/10000)-1;
- //int m = zc_max((ri->d[1]/10000)-1,0); //2.50.1 had this.
- bool err_input_found;
- if ( m < 0 || m >= map_count ) {
- al_trace("Invalid Map Reference Passed to Game->GetComboType: \n %d", m);
- err_input_found = true;
- }
- if ( sc < 0 || sc >= MAPSCRS )
- {
- al_trace("Invalid Screen Reference Passed to Screen->GetComboType: \n %d", sc);
- err_input_found = true;
- }
- if ( pos < 0 || pos > 175 )
- {
- al_trace("Invalid Position Reference Passed to Screen->GetComboype: \n %d", pos);
- err_input_found = true;
- }
- if ( err_input_found ) {
- ret = -10000;
- }
- else
- {
- long scr = m*MAPSCRS+sc;
- //long scr = zc_max(m*MAPSCRS+sc,0); //2.50.1 had this.
- int layr = whichlayer(scr);
- if(scr==(currmap*MAPSCRS+currscr))
- ret=combobuf[tmpscr->data[pos]].type*10000;
- else if(layr>-1)
- ret=combobuf[tmpscr2[layr].data[pos]].type*10000;
- else ret=combobuf[
- TheMaps[scr].data[pos]].type*10000;
- }
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement