Subversion Repositories eduke32

Rev

Rev 5020 | Rev 5035 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5020 Rev 5024
Line 9454... Line 9454...
9454
        gloy1 = 0;
9454
        gloy1 = 0;
9455
        return 0;
9455
        return 0;
9456
    }
9456
    }
9457
# endif
9457
# endif
9458
9458
-
 
9459
    // Update starting sector number (common to classic and Polymost).
-
 
9460
    if (globalcursectnum >= MAXSECTORS)
-
 
9461
        globalcursectnum -= MAXSECTORS;
-
 
9462
    else
-
 
9463
    {
-
 
9464
        i = globalcursectnum;
-
 
9465
        updatesectorbreadth(globalposx,globalposy,&globalcursectnum);
-
 
9466
        if (globalcursectnum < 0) globalcursectnum = i;
-
 
9467
-
 
9468
        // PK 20110123: I'm not sure what the line above is supposed to do, but 'i'
-
 
9469
        //              *can* be negative, so let's just quit here in that case...
-
 
9470
        if (globalcursectnum<0)
-
 
9471
            return 0;
-
 
9472
    }
-
 
9473
9459
    //============================================================================= //POLYMOST BEGINS
9474
    //============================================================================= //POLYMOST BEGINS
9460
    polymost_drawrooms();
9475
    polymost_drawrooms();
9461
9476
9462
    if (getrendermode() != REND_CLASSIC)
9477
    if (getrendermode() != REND_CLASSIC)
9463
        return 0;
9478
        return 0;
Line 9497... Line 9512...
9497
9512
9498
//        yaxdebug("cf %d, tlev %d, bunch %d: numhits=%d", yax_globalcf, yax_globallev, yax_globalbunch, numhits);
9513
//        yaxdebug("cf %d, tlev %d, bunch %d: numhits=%d", yax_globalcf, yax_globallev, yax_globalbunch, numhits);
9499
    }
9514
    }
9500
#endif
9515
#endif
9501
9516
9502
    if (globalcursectnum >= MAXSECTORS)
-
 
9503
        globalcursectnum -= MAXSECTORS;
-
 
9504
    else
-
 
9505
    {
-
 
9506
        i = globalcursectnum;
-
 
9507
        updatesector(globalposx,globalposy,&globalcursectnum);
-
 
9508
        if (globalcursectnum < 0) globalcursectnum = i;
-
 
9509
-
 
9510
        // PK 20110123: I'm not sure what the line above is supposed to do, but 'i'
-
 
9511
        //              *can* be negative, so let's just quit here in that case...
-
 
9512
        if (globalcursectnum<0)
-
 
9513
        {
-
 
9514
            enddrawing();  //!!!
-
 
9515
            return 0;
-
 
9516
        }
-
 
9517
    }
-
 
9518
/*
9517
/*
9519
    globparaceilclip = 1;
9518
    globparaceilclip = 1;
9520
    globparaflorclip = 1;
9519
    globparaflorclip = 1;
9521
    getzsofslope(globalcursectnum,globalposx,globalposy,&cz,&fz);
9520
    getzsofslope(globalcursectnum,globalposx,globalposy,&cz,&fz);
9522
    if (globalposz < cz) globparaceilclip = 0;
9521
    if (globalposz < cz) globparaceilclip = 0;