Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8472 → Rev 8473

/source/kenbuild/src/bstub.cpp
133,16 → 133,8
 
int32_t ExtPostStartupWindow(void)
{
int i;
 
initgroupfile(G_GrpFile());
 
//You can load your own palette lookup tables here if you just
//copy the right code!
for (i=0; i<256; i++)
tempbuf[i] = ((i+32)&255); //remap colors for screwy palette sectors
paletteMakeLookupTable(16,tempbuf,0,0,0,1);
 
if (engineInit())
{
initprintf("There was a problem initializing the engine.\n");
149,7 → 141,7
return -1;
}
 
Ken_InitMultiPsky();
Ken_PostStartupWindow();
 
tiletovox[PLAYER] = nextvoxid++;
tiletovox[BROWNMONSTER] = nextvoxid++;
/source/kenbuild/src/common.cpp
26,7 → 26,7
return defaultdeffilename;
}
 
void Ken_InitMultiPsky(void)
static void Ken_InitMultiPsky()
{
// default
psky_t * const defaultsky = tileSetupSky(DEFAULTPSKY);
43,3 → 43,38
nightsky->lognumtiles = 3;
nightsky->horizfrac = 65536;
}
 
void Ken_PostStartupWindow()
{
Ken_InitMultiPsky();
 
size_t i;
char tempbuf[256];
 
for (i=0; i<256; i++) tempbuf[i] = i;
 
for (i=0; i<32; i++) tempbuf[i+192] = i+128; //green->red
paletteMakeLookupTable(1,tempbuf,0,0,0,1);
for (i=0; i<32; i++) tempbuf[i+192] = i+32; //green->blue
paletteMakeLookupTable(2,tempbuf,0,0,0,1);
for (i=0; i<32; i++) tempbuf[i+192] = i+224; //green->pink
paletteMakeLookupTable(3,tempbuf,0,0,0,1);
for (i=0; i<32; i++) tempbuf[i+192] = i+64; //green->brown
paletteMakeLookupTable(4,tempbuf,0,0,0,1);
for (i=0; i<32; i++) tempbuf[i+192] = i+96;
paletteMakeLookupTable(5,tempbuf,0,0,0,1);
for (i=0; i<32; i++) tempbuf[i+192] = i+160;
paletteMakeLookupTable(6,tempbuf,0,0,0,1);
for (i=0; i<32; i++) tempbuf[i+192] = i+192;
paletteMakeLookupTable(7,tempbuf,0,0,0,1);
 
for (i=0; i<256; i++)
tempbuf[i] = ((i+32)&255); //remap colors for screwy palette sectors
paletteMakeLookupTable(16,tempbuf,0,0,0,1);
 
for (i=0; i<256; i++) tempbuf[i] = i;
paletteMakeLookupTable(17,tempbuf,96,96,96,1);
 
for (i=0; i<256; i++) tempbuf[i] = i; //(i&31)+32;
paletteMakeLookupTable(18,tempbuf,32,32,192,1);
}
/source/kenbuild/src/common_game.h
4,4 → 4,4
extern const char *G_DefaultGrpFile(void);
extern const char *G_GrpFile(void);
 
extern void Ken_InitMultiPsky(void);
void Ken_PostStartupWindow(void);
/source/kenbuild/src/game.cpp
530,7 → 530,7
return -1;
}
 
Ken_InitMultiPsky();
Ken_PostStartupWindow();
 
initinput();
if (option[3] != 0) mouseInit();
597,16 → 597,6
 
initlava();
 
for (j=0; j<256; j++)
tempbuf[j] = ((j+32)&255); //remap colors for screwy palette sectors
paletteMakeLookupTable(16,tempbuf,0,0,0,1);
 
for (j=0; j<256; j++) tempbuf[j] = j;
paletteMakeLookupTable(17,tempbuf,96,96,96,1);
 
for (j=0; j<256; j++) tempbuf[j] = j; //(j&31)+32;
paletteMakeLookupTable(18,tempbuf,32,32,192,1);
 
palettePostLoadLookups();
 
prepareboard(boardfilename); //Load board
4775,19 → 4765,6
spawnsprite(playersprite[snum],pos[snum].x,pos[snum].y,pos[snum].z+EYEHEIGHT,
1+256,0,snum,32,64,64,0,0,PLAYER,ang[snum],0,0,0,snum+4096,
cursectnum[snum],8,0,0,0);
 
switch (snum)
{
case 1: for (i=0; i<32; i++) tempbuf[i+192] = i+128; break; //green->red
case 2: for (i=0; i<32; i++) tempbuf[i+192] = i+32; break; //green->blue
case 3: for (i=0; i<32; i++) tempbuf[i+192] = i+224; break; //green->pink
case 4: for (i=0; i<32; i++) tempbuf[i+192] = i+64; break; //green->brown
case 5: for (i=0; i<32; i++) tempbuf[i+192] = i+96; break;
case 6: for (i=0; i<32; i++) tempbuf[i+192] = i+160; break;
case 7: for (i=0; i<32; i++) tempbuf[i+192] = i+192; break;
default: for (i=0; i<256; i++) tempbuf[i] = i; break;
}
paletteMakeLookupTable(snum,tempbuf,0,0,0,1);
}
 
void playback(void)