Subversion Repositories eduke32

Rev

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

Rev 7540 Rev 8473
Line 24... Line 24...
24
const char *G_DefFile(void)
24
const char *G_DefFile(void)
25
{
25
{
26
    return defaultdeffilename;
26
    return defaultdeffilename;
27
}
27
}
28
28
29
void Ken_InitMultiPsky(void)
29
static void Ken_InitMultiPsky()
30
{
30
{
31
    // default
31
    // default
32
    psky_t * const defaultsky = tileSetupSky(DEFAULTPSKY);
32
    psky_t * const defaultsky = tileSetupSky(DEFAULTPSKY);
33
    defaultsky->lognumtiles = 1;
33
    defaultsky->lognumtiles = 1;
34
    defaultsky->horizfrac = 65536;
34
    defaultsky->horizfrac = 65536;
Line 41... Line 41...
41
    // NIGHTSKY
41
    // NIGHTSKY
42
    psky_t * const nightsky = tileSetupSky(NIGHTSKY);
42
    psky_t * const nightsky = tileSetupSky(NIGHTSKY);
43
    nightsky->lognumtiles = 3;
43
    nightsky->lognumtiles = 3;
44
    nightsky->horizfrac = 65536;
44
    nightsky->horizfrac = 65536;
45
}
45
}
-
 
46
-
 
47
void Ken_PostStartupWindow()
-
 
48
{
-
 
49
    Ken_InitMultiPsky();
-
 
50
-
 
51
    size_t i;
-
 
52
    char tempbuf[256];
-
 
53
-
 
54
    for (i=0; i<256; i++) tempbuf[i] = i;
-
 
55
-
 
56
    for (i=0; i<32; i++) tempbuf[i+192] = i+128; //green->red
-
 
57
    paletteMakeLookupTable(1,tempbuf,0,0,0,1);
-
 
58
    for (i=0; i<32; i++) tempbuf[i+192] = i+32; //green->blue
-
 
59
    paletteMakeLookupTable(2,tempbuf,0,0,0,1);
-
 
60
    for (i=0; i<32; i++) tempbuf[i+192] = i+224; //green->pink
-
 
61
    paletteMakeLookupTable(3,tempbuf,0,0,0,1);
-
 
62
    for (i=0; i<32; i++) tempbuf[i+192] = i+64; //green->brown
-
 
63
    paletteMakeLookupTable(4,tempbuf,0,0,0,1);
-
 
64
    for (i=0; i<32; i++) tempbuf[i+192] = i+96;
-
 
65
    paletteMakeLookupTable(5,tempbuf,0,0,0,1);
-
 
66
    for (i=0; i<32; i++) tempbuf[i+192] = i+160;
-
 
67
    paletteMakeLookupTable(6,tempbuf,0,0,0,1);
-
 
68
    for (i=0; i<32; i++) tempbuf[i+192] = i+192;
-
 
69
    paletteMakeLookupTable(7,tempbuf,0,0,0,1);
-
 
70
-
 
71
    for (i=0; i<256; i++)
-
 
72
        tempbuf[i] = ((i+32)&255);  //remap colors for screwy palette sectors
-
 
73
    paletteMakeLookupTable(16,tempbuf,0,0,0,1);
-
 
74
-
 
75
    for (i=0; i<256; i++) tempbuf[i] = i;
-
 
76
    paletteMakeLookupTable(17,tempbuf,96,96,96,1);
-
 
77
-
 
78
    for (i=0; i<256; i++) tempbuf[i] = i; //(i&31)+32;
-
 
79
    paletteMakeLookupTable(18,tempbuf,32,32,192,1);
-
 
80
}