Subversion Repositories eduke32

Rev

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

Rev 8471 Rev 8473
Line 528... Line 528...
528
    {
528
    {
529
        Ken_FatalEngineError();
529
        Ken_FatalEngineError();
530
        return -1;
530
        return -1;
531
    }
531
    }
532
532
533
    Ken_InitMultiPsky();
533
    Ken_PostStartupWindow();
534
534
535
    initinput();
535
    initinput();
536
    if (option[3] != 0) mouseInit();
536
    if (option[3] != 0) mouseInit();
537
    timerInit(TIMERINTSPERSECOND);
537
    timerInit(TIMERINTSPERSECOND);
538
538
Line 595... Line 595...
595
        tileCopySection(EXPLOSION,0,0,64,64,MAXTILES-1,0,0);
595
        tileCopySection(EXPLOSION,0,0,64,64,MAXTILES-1,0,0);
596
    }
596
    }
597
597
598
    initlava();
598
    initlava();
599
599
600
    for (j=0; j<256; j++)
-
 
601
        tempbuf[j] = ((j+32)&255);  //remap colors for screwy palette sectors
-
 
602
    paletteMakeLookupTable(16,tempbuf,0,0,0,1);
-
 
603
-
 
604
    for (j=0; j<256; j++) tempbuf[j] = j;
-
 
605
    paletteMakeLookupTable(17,tempbuf,96,96,96,1);
-
 
606
-
 
607
    for (j=0; j<256; j++) tempbuf[j] = j; //(j&31)+32;
-
 
608
    paletteMakeLookupTable(18,tempbuf,32,32,192,1);
-
 
609
-
 
610
    palettePostLoadLookups();
600
    palettePostLoadLookups();
611
601
612
    prepareboard(boardfilename);                   //Load board
602
    prepareboard(boardfilename);                   //Load board
613
603
614
    initsb(option[1],option[2],digihz[option[7]>>4],((option[7]&4)>0)+1,((option[7]&2)>0)+1,60,option[7]&1);
604
    initsb(option[1],option[2],digihz[option[7]>>4],((option[7]&4)>0)+1,((option[7]&2)>0)+1,60,option[7]&1);
Line 4773... Line 4763...
4773
    if (playersprite[snum] >= 0) return;
4763
    if (playersprite[snum] >= 0) return;
4774
4764
4775
    spawnsprite(playersprite[snum],pos[snum].x,pos[snum].y,pos[snum].z+EYEHEIGHT,
4765
    spawnsprite(playersprite[snum],pos[snum].x,pos[snum].y,pos[snum].z+EYEHEIGHT,
4776
                1+256,0,snum,32,64,64,0,0,PLAYER,ang[snum],0,0,0,snum+4096,
4766
                1+256,0,snum,32,64,64,0,0,PLAYER,ang[snum],0,0,0,snum+4096,
4777
                cursectnum[snum],8,0,0,0);
4767
                cursectnum[snum],8,0,0,0);
4778
-
 
4779
    switch (snum)
-
 
4780
    {
-
 
4781
    case 1: for (i=0; i<32; i++) tempbuf[i+192] = i+128; break; //green->red
-
 
4782
    case 2: for (i=0; i<32; i++) tempbuf[i+192] = i+32; break; //green->blue
-
 
4783
    case 3: for (i=0; i<32; i++) tempbuf[i+192] = i+224; break; //green->pink
-
 
4784
    case 4: for (i=0; i<32; i++) tempbuf[i+192] = i+64; break; //green->brown
-
 
4785
    case 5: for (i=0; i<32; i++) tempbuf[i+192] = i+96; break;
-
 
4786
    case 6: for (i=0; i<32; i++) tempbuf[i+192] = i+160; break;
-
 
4787
    case 7: for (i=0; i<32; i++) tempbuf[i+192] = i+192; break;
-
 
4788
    default: for (i=0; i<256; i++) tempbuf[i] = i; break;
-
 
4789
    }
-
 
4790
    paletteMakeLookupTable(snum,tempbuf,0,0,0,1);
-
 
4791
}
4768
}
4792
4769
4793
void playback(void)
4770
void playback(void)
4794
{
4771
{
4795
    int i, j, k;
4772
    int i, j, k;