mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
Small things
git-svn-id: https://svn.eduke32.com/eduke32@514 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
3f5f1b8fb2
commit
67efe33c18
11 changed files with 113 additions and 97 deletions
|
@ -6084,12 +6084,13 @@ if ((!r_depthpeeling) || (rendmode < 3))
|
||||||
drawline256(xs+65536,ys-65536,xs-65536,ys+65536,31);
|
drawline256(xs+65536,ys-65536,xs-65536,ys+65536,31);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
#ifdef USE_OPENGL
|
#if defined(USE_OPENGL) && defined(POLYMOST)
|
||||||
if ((!r_depthpeeling) || (rendmode < 3))
|
if ((!r_depthpeeling) || (rendmode < 3))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
#if defined(USE_OPENGL) && defined(POLYMOST)
|
||||||
curpolygonoffset = 0;
|
curpolygonoffset = 0;
|
||||||
|
#endif
|
||||||
pos.x = globalposx;
|
pos.x = globalposx;
|
||||||
pos.y = globalposy;
|
pos.y = globalposy;
|
||||||
|
|
||||||
|
@ -6136,7 +6137,7 @@ if ((!r_depthpeeling) || (rendmode < 3))
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* depthpeeling */
|
} /* depthpeeling */
|
||||||
#ifdef USE_OPENGL
|
#if defined(USE_OPENGL) && defined(POLYMOST)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
curpolygonoffset = 0;
|
curpolygonoffset = 0;
|
||||||
|
@ -6148,7 +6149,7 @@ else
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_OPENGL
|
#if defined(USE_OPENGL) && defined(POLYMOST)
|
||||||
if ((r_depthpeeling) && (rendmode >= 3))
|
if ((r_depthpeeling) && (rendmode >= 3))
|
||||||
{
|
{
|
||||||
bglPopAttrib();
|
bglPopAttrib();
|
||||||
|
|
|
@ -1321,12 +1321,6 @@ static int md3draw (md3model *m, spritetype *tspr)
|
||||||
|
|
||||||
if (m->head.flags == 1337)
|
if (m->head.flags == 1337)
|
||||||
{ // md2
|
{ // md2
|
||||||
/*m0.x = m->scale * g * m->muladdframes[m->cframe*2].x; m1.x = m->scale * f * m->muladdframes[m->nframe*2].x;
|
|
||||||
m0.y = m->scale * g * m->muladdframes[m->cframe*2].y; m1.y = m->scale * f * m->muladdframes[m->nframe*2].y;
|
|
||||||
m0.z = m->scale * g * m->muladdframes[m->cframe*2].z; m1.z = m->scale * f * m->muladdframes[m->nframe*2].z;
|
|
||||||
a0.x = m->muladdframes[m->cframe*2+1].x * m->scale; a0.x = (m->muladdframes[m->nframe*2+1].x * m->scale - a0.x)*f+a0.x;
|
|
||||||
a0.y = m->muladdframes[m->cframe*2+1].y * m->scale; a0.y = (m->muladdframes[m->nframe*2+1].y * m->scale - a0.y)*f+a0.y;
|
|
||||||
a0.z = m->muladdframes[m->cframe*2+1].z * m->scale; a0.z = (m->muladdframes[m->nframe*2+1].z * m->scale - a0.z)*f+a0.z + m->zadd*m->scale;*/
|
|
||||||
m0.x = m->scale * g; m1.x = m->scale *f;
|
m0.x = m->scale * g; m1.x = m->scale *f;
|
||||||
m0.y = m->scale * g; m1.y = m->scale *f;
|
m0.y = m->scale * g; m1.y = m->scale *f;
|
||||||
m0.z = m->scale * g; m1.z = m->scale *f;
|
m0.z = m->scale * g; m1.z = m->scale *f;
|
||||||
|
@ -1594,50 +1588,6 @@ if (tspr->cstat&2) { if (!(tspr->cstat&512)) pc[3] = 0.66; else pc[3] = 0.33; }
|
||||||
//PLAG: delayed polygon-level sorted rendering
|
//PLAG: delayed polygon-level sorted rendering
|
||||||
if (m->usesalpha && !(tspr->cstat & 1024) && !r_depthpeeling)
|
if (m->usesalpha && !(tspr->cstat & 1024) && !r_depthpeeling)
|
||||||
{
|
{
|
||||||
// old sorting methods - dead code
|
|
||||||
/*for(i=s->numtris-1;i>=0;i--)
|
|
||||||
{
|
|
||||||
tempf = (vertlist[s->tris[i].i[0]].x * mat[2]) + (vertlist[s->tris[i].i[0]].y * mat[6]) + (vertlist[s->tris[i].i[0]].z * mat[10]) + mat[14];
|
|
||||||
if (tempf < ((vertlist[s->tris[i].i[1]].x * mat[2]) + (vertlist[s->tris[i].i[1]].y * mat[6]) + (vertlist[s->tris[i].i[1]].z * mat[10]) + mat[14]))
|
|
||||||
tempf = (vertlist[s->tris[i].i[1]].x * mat[2]) + (vertlist[s->tris[i].i[1]].y * mat[6]) + (vertlist[s->tris[i].i[1]].z * mat[10]) + mat[14];
|
|
||||||
if (tempf < ((vertlist[s->tris[i].i[2]].x * mat[2]) + (vertlist[s->tris[i].i[2]].y * mat[6]) + (vertlist[s->tris[i].i[2]].z * mat[10]) + mat[14]))
|
|
||||||
tempf = (vertlist[s->tris[i].i[2]].x * mat[2]) + (vertlist[s->tris[i].i[2]].y * mat[6]) + (vertlist[s->tris[i].i[2]].z * mat[10]) + mat[14];
|
|
||||||
maxdepths[i] = tempf;
|
|
||||||
indexes[i] = i;
|
|
||||||
}
|
|
||||||
|
|
||||||
for(i=s->numtris-1;i>=0;i--)
|
|
||||||
{
|
|
||||||
tempf = (vertlist[s->tris[i].i[0]].x * mat[2]) + (vertlist[s->tris[i].i[0]].y * mat[6]) + (vertlist[s->tris[i].i[0]].z * mat[10]) + mat[14];
|
|
||||||
tempf += (vertlist[s->tris[i].i[1]].x * mat[2]) + (vertlist[s->tris[i].i[1]].y * mat[6]) + (vertlist[s->tris[i].i[1]].z * mat[10]) + mat[14];
|
|
||||||
tempf += (vertlist[s->tris[i].i[2]].x * mat[2]) + (vertlist[s->tris[i].i[2]].y * mat[6]) + (vertlist[s->tris[i].i[2]].z * mat[10]) + mat[14];
|
|
||||||
tempf /= 3.0f;
|
|
||||||
maxdepths[i] = tempf;
|
|
||||||
indexes[i] = i;
|
|
||||||
}
|
|
||||||
|
|
||||||
for(i=s->numtris-1;i>=0;i--)
|
|
||||||
{
|
|
||||||
tempvec[0].x = (vertlist[s->tris[i].i[0]].x * mat[0]) + (vertlist[s->tris[i].i[0]].y * mat[4]) + (vertlist[s->tris[i].i[0]].z * mat[8]) + mat[12];
|
|
||||||
tempvec[0].y = (vertlist[s->tris[i].i[0]].x * mat[1]) + (vertlist[s->tris[i].i[0]].y * mat[5]) + (vertlist[s->tris[i].i[0]].z * mat[9]) + mat[13];
|
|
||||||
tempvec[0].z = (vertlist[s->tris[i].i[0]].x * mat[2]) + (vertlist[s->tris[i].i[0]].y * mat[6]) + (vertlist[s->tris[i].i[0]].z * mat[10]) + mat[14];
|
|
||||||
|
|
||||||
tempvec[1].x = (vertlist[s->tris[i].i[1]].x * mat[0]) + (vertlist[s->tris[i].i[1]].y * mat[4]) + (vertlist[s->tris[i].i[1]].z * mat[8]) + mat[12];
|
|
||||||
tempvec[1].y = (vertlist[s->tris[i].i[1]].x * mat[1]) + (vertlist[s->tris[i].i[1]].y * mat[5]) + (vertlist[s->tris[i].i[1]].z * mat[9]) + mat[13];
|
|
||||||
tempvec[1].z = (vertlist[s->tris[i].i[1]].x * mat[2]) + (vertlist[s->tris[i].i[1]].y * mat[6]) + (vertlist[s->tris[i].i[1]].z * mat[10]) + mat[14];
|
|
||||||
|
|
||||||
tempvec[2].x = (vertlist[s->tris[i].i[2]].x * mat[0]) + (vertlist[s->tris[i].i[2]].y * mat[4]) + (vertlist[s->tris[i].i[2]].z * mat[8]) + mat[12];
|
|
||||||
tempvec[2].y = (vertlist[s->tris[i].i[2]].x * mat[1]) + (vertlist[s->tris[i].i[2]].y * mat[5]) + (vertlist[s->tris[i].i[2]].z * mat[9]) + mat[13];
|
|
||||||
tempvec[2].z = (vertlist[s->tris[i].i[2]].x * mat[2]) + (vertlist[s->tris[i].i[2]].y * mat[6]) + (vertlist[s->tris[i].i[2]].z * mat[10]) + mat[14];
|
|
||||||
|
|
||||||
tempf = (tempvec[0].x * tempvec[0].x) + (tempvec[0].y * tempvec[0].y) + (tempvec[0].z * tempvec[0].z);
|
|
||||||
tempf += (tempvec[1].x * tempvec[1].x) + (tempvec[1].y * tempvec[1].y) + (tempvec[1].z * tempvec[1].z);
|
|
||||||
tempf += (tempvec[2].x * tempvec[2].x) + (tempvec[2].y * tempvec[2].y) + (tempvec[2].z * tempvec[2].z);
|
|
||||||
|
|
||||||
maxdepths[i] = tempf;
|
|
||||||
indexes[i] = i;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
for (i=s->numtris-1;i>=0;i--)
|
for (i=s->numtris-1;i>=0;i--)
|
||||||
{
|
{
|
||||||
// Matrix multiplication - ugly but clear
|
// Matrix multiplication - ugly but clear
|
||||||
|
@ -1666,26 +1616,6 @@ if (tspr->cstat&2) { if (!(tspr->cstat&512)) pc[3] = 0.66; else pc[3] = 0.33; }
|
||||||
m->indexes[i] = i;
|
m->indexes[i] = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
//bubble sort - dead code
|
|
||||||
/*test = 0;
|
|
||||||
j = 0;
|
|
||||||
while (j == 0)
|
|
||||||
{
|
|
||||||
j = 1;
|
|
||||||
for(i=s->numtris-1;i>0;i--)
|
|
||||||
if (maxdepths[i] < maxdepths[i-1])
|
|
||||||
{
|
|
||||||
f = maxdepths[i];
|
|
||||||
maxdepths[i] = maxdepths[i-1];
|
|
||||||
maxdepths[i-1] = f;
|
|
||||||
k = indexes[i];
|
|
||||||
indexes[i] = indexes[i-1];
|
|
||||||
indexes[i-1] = k;
|
|
||||||
test++;
|
|
||||||
j = 0;
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
// dichotomic recursive sorting - about 100x less iterations than bubblesort
|
// dichotomic recursive sorting - about 100x less iterations than bubblesort
|
||||||
quicksort(m->indexes, m->maxdepths, 0, s->numtris - 1);
|
quicksort(m->indexes, m->maxdepths, 0, s->numtris - 1);
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ static void _internal_clearbackground(int,int);
|
||||||
static int _internal_gettime(void);
|
static int _internal_gettime(void);
|
||||||
static void _internal_onshowosd(int);
|
static void _internal_onshowosd(int);
|
||||||
|
|
||||||
#define TEXTSIZE 16384
|
#define TEXTSIZE 32768
|
||||||
|
|
||||||
// history display
|
// history display
|
||||||
static char osdtext[TEXTSIZE];
|
static char osdtext[TEXTSIZE];
|
||||||
|
|
|
@ -399,6 +399,62 @@ static int set_maxrefreshfreq(const osdfuncparm_t *parm)
|
||||||
//
|
//
|
||||||
// initsystem() -- init systems
|
// initsystem() -- init systems
|
||||||
//
|
//
|
||||||
|
|
||||||
|
static void print_os_version(void)
|
||||||
|
{
|
||||||
|
OSVERSIONINFO osv;
|
||||||
|
const char *ver;
|
||||||
|
// I was going to call this 'windows_9x_is_awful', but I couldn't justify ever setting it to 0
|
||||||
|
int awful_windows_9x = 0;
|
||||||
|
|
||||||
|
osv.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
|
||||||
|
GetVersionEx(&osv);
|
||||||
|
|
||||||
|
switch (osv.dwPlatformId)
|
||||||
|
{
|
||||||
|
case VER_PLATFORM_WIN32_NT:
|
||||||
|
if (osv.dwMajorVersion == 5)
|
||||||
|
{
|
||||||
|
switch (osv.dwMinorVersion)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
ver = "2000";
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
ver = "XP";
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
ver = "Server 2003";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (osv.dwMajorVersion == 6 && osv.dwMinorVersion == 0)
|
||||||
|
ver = "Vista";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case VER_PLATFORM_WIN32_WINDOWS:
|
||||||
|
awful_windows_9x = 1;
|
||||||
|
if (osv.dwMinorVersion < 10)
|
||||||
|
ver = "95";
|
||||||
|
else if (osv.dwMinorVersion < 90)
|
||||||
|
ver = "98";
|
||||||
|
else ver = "Me";
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
ver = "Unknown";
|
||||||
|
initprintf("OS: Unknown OS\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
initprintf("OS: Windows %s (Version %lu.%lu.%lu)\n", ver, osv.dwMajorVersion, osv.dwMinorVersion,
|
||||||
|
awful_windows_9x?osv.dwBuildNumber&0xffff:osv.dwBuildNumber);
|
||||||
|
if (osv.szCSDVersion[0])
|
||||||
|
initprintf(" - %s\n", osv.szCSDVersion);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int initsystem(void)
|
int initsystem(void)
|
||||||
{
|
{
|
||||||
DEVMODE desktopmode;
|
DEVMODE desktopmode;
|
||||||
|
@ -425,6 +481,8 @@ int initsystem(void)
|
||||||
frameplace=0;
|
frameplace=0;
|
||||||
lockcount=0;
|
lockcount=0;
|
||||||
|
|
||||||
|
print_os_version();
|
||||||
|
|
||||||
#if defined(USE_OPENGL) && defined(POLYMOST)
|
#if defined(USE_OPENGL) && defined(POLYMOST)
|
||||||
if (loadgldriver(getenv("BUILD_GLDRV"))) {
|
if (loadgldriver(getenv("BUILD_GLDRV"))) {
|
||||||
initprintf("Failed loading OpenGL driver. GL modes will be unavailable.\n");
|
initprintf("Failed loading OpenGL driver. GL modes will be unavailable.\n");
|
||||||
|
|
|
@ -204,7 +204,9 @@ void playanm(const char *fn,char t)
|
||||||
char *animbuf;
|
char *animbuf;
|
||||||
unsigned char *palptr;
|
unsigned char *palptr;
|
||||||
long i, j, length=0, numframes=0;
|
long i, j, length=0, numframes=0;
|
||||||
|
#if defined(POLYMOST) && defined(USE_OPENGL)
|
||||||
|
int ogltexfiltermode=gltexfiltermode;
|
||||||
|
#endif
|
||||||
int32 handle=-1;
|
int32 handle=-1;
|
||||||
|
|
||||||
// return;
|
// return;
|
||||||
|
@ -248,6 +250,11 @@ void playanm(const char *fn,char t)
|
||||||
//setbrightness(ud.brightness>>2,tempbuf,2);
|
//setbrightness(ud.brightness>>2,tempbuf,2);
|
||||||
setgamepalette(&ps[myconnectindex],animpal,10);
|
setgamepalette(&ps[myconnectindex],animpal,10);
|
||||||
|
|
||||||
|
#if defined(POLYMOST) && defined(USE_OPENGL)
|
||||||
|
gltexfiltermode = 0;
|
||||||
|
gltexapplyprops();
|
||||||
|
#endif
|
||||||
|
|
||||||
ototalclock = totalclock + 10;
|
ototalclock = totalclock + 10;
|
||||||
|
|
||||||
for (i=1;i<numframes;i++)
|
for (i=1;i<numframes;i++)
|
||||||
|
@ -293,6 +300,10 @@ void playanm(const char *fn,char t)
|
||||||
|
|
||||||
ENDOFANIMLOOP:
|
ENDOFANIMLOOP:
|
||||||
|
|
||||||
|
#if defined(POLYMOST) && defined(USE_OPENGL)
|
||||||
|
gltexfiltermode = ogltexfiltermode;
|
||||||
|
gltexapplyprops();
|
||||||
|
#endif
|
||||||
MOUSE_ClearButton(LEFT_MOUSE);
|
MOUSE_ClearButton(LEFT_MOUSE);
|
||||||
ANIM_FreeAnim();
|
ANIM_FreeAnim();
|
||||||
walock[TILE_ANIM] = 1;
|
walock[TILE_ANIM] = 1;
|
||||||
|
|
|
@ -4381,7 +4381,7 @@ int ExtPreInit(int argc,char **argv)
|
||||||
OSD_SetLogFile("mapster32.log");
|
OSD_SetLogFile("mapster32.log");
|
||||||
OSD_SetVersionString("Mapster32"VERSION);
|
OSD_SetVersionString("Mapster32"VERSION);
|
||||||
initprintf("Mapster32"VERSION" ("__DATE__" "__TIME__")\n");
|
initprintf("Mapster32"VERSION" ("__DATE__" "__TIME__")\n");
|
||||||
initprintf("Copyright (c) 2006 EDuke32 team\n\n");
|
initprintf("Copyright (c) 2007 EDuke32 team\n\n");
|
||||||
|
|
||||||
checkcommandline(argc,argv);
|
checkcommandline(argc,argv);
|
||||||
|
|
||||||
|
@ -4788,17 +4788,20 @@ void ExtAnalyzeSprites(void)
|
||||||
if (tspr->lotag>skill+1)
|
if (tspr->lotag>skill+1)
|
||||||
{
|
{
|
||||||
tspr->xrepeat=0;
|
tspr->xrepeat=0;
|
||||||
|
tspr->cstat=32768;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (nosprites==2||nosprites==3)
|
if (nosprites==2||nosprites==3)
|
||||||
{
|
{
|
||||||
tspr->xrepeat=0;
|
tspr->xrepeat=0;
|
||||||
// tspr->cstat|=32768;
|
tspr->cstat=32768;
|
||||||
}
|
}
|
||||||
// else tspr->cstat&=32767;
|
// else tspr->cstat&=32767;
|
||||||
|
|
||||||
|
#if defined(USE_OPENGL) && defined(POLYMOST)
|
||||||
if (!usemodels || md_tilehasmodel(tspr->picnum) < 0)
|
if (!usemodels || md_tilehasmodel(tspr->picnum) < 0)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if (frames!=0)
|
if (frames!=0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -48,6 +48,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include "util_lib.h"
|
#include "util_lib.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <windows.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
extern int getversionfromwebsite(char *buffer);
|
extern int getversionfromwebsite(char *buffer);
|
||||||
#define BUILDDATE 20070125
|
#define BUILDDATE 20070125
|
||||||
|
@ -3457,7 +3459,10 @@ void displayrest(long smoothratio)
|
||||||
#if defined(POLYMOST) && defined(USE_OPENGL)
|
#if defined(POLYMOST) && defined(USE_OPENGL)
|
||||||
{
|
{
|
||||||
extern char mdpause;
|
extern char mdpause;
|
||||||
mdpause = ud.pause_on;
|
|
||||||
|
mdpause = 0;
|
||||||
|
if (ud.pause_on || (ps[myconnectindex].gm&MODE_MENU && numplayers < 2))
|
||||||
|
mdpause = 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -7585,7 +7590,8 @@ FOUNDCHEAT:
|
||||||
{
|
{
|
||||||
if (ps[myconnectindex].cheat_phase >= 0 && numplayers < 2 && ud.recstat == 0)
|
if (ps[myconnectindex].cheat_phase >= 0 && numplayers < 2 && ud.recstat == 0)
|
||||||
{
|
{
|
||||||
KB_ClearKeyDown((unsigned char)cheatkey[0]);
|
if (cheatkey[0] == cheatkey[1])
|
||||||
|
KB_ClearKeyDown((unsigned char)cheatkey[0]);
|
||||||
ps[myconnectindex].cheat_phase = -1;
|
ps[myconnectindex].cheat_phase = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9739,7 +9745,7 @@ void app_main(int argc,char **argv)
|
||||||
|
|
||||||
initprintf("%s (%s)\n",apptitle,datetimestring);
|
initprintf("%s (%s)\n",apptitle,datetimestring);
|
||||||
initprintf("Copyright (c) 1996, 2003 3D Realms Entertainment\n");
|
initprintf("Copyright (c) 1996, 2003 3D Realms Entertainment\n");
|
||||||
initprintf("Copyright (c) 2006 EDuke32 team\n");
|
initprintf("Copyright (c) 2007 EDuke32 team\n");
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
addsearchpath("/usr/share/games/jfduke3d");
|
addsearchpath("/usr/share/games/jfduke3d");
|
||||||
|
|
|
@ -24,6 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
#include "duke3d.h"
|
#include "duke3d.h"
|
||||||
#include "gamedef.h"
|
#include "gamedef.h"
|
||||||
|
#include "osd.h"
|
||||||
|
|
||||||
extern int g_i,g_p;
|
extern int g_i,g_p;
|
||||||
|
|
||||||
|
|
|
@ -3225,7 +3225,7 @@ cheat_for_port_credits:
|
||||||
menutext(c,50+62+16,MENUHIGHLIGHT(4),PHX(-6),"BRIGHTNESS");
|
menutext(c,50+62+16,MENUHIGHLIGHT(4),PHX(-6),"BRIGHTNESS");
|
||||||
{
|
{
|
||||||
short ss = ud.brightness;
|
short ss = ud.brightness;
|
||||||
bar(c+167,50+62+16,&ss,8,x==4,MENUHIGHLIGHT(4),PHX(-6));
|
bar(c+171,50+62+16,&ss,8,x==4,MENUHIGHLIGHT(4),PHX(-6));
|
||||||
if (x==4)
|
if (x==4)
|
||||||
{
|
{
|
||||||
ud.brightness = ss;
|
ud.brightness = ss;
|
||||||
|
@ -4255,9 +4255,9 @@ cheat_for_port_credits:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
menutext(c+160+40,50,MENUHIGHLIGHT(0),(FXDevice<0),SoundToggle && FXDevice >= 0?"ON":"OFF");
|
menutext(c+151+40,50,MENUHIGHLIGHT(0),(FXDevice<0),SoundToggle && FXDevice >= 0?"ON":"OFF");
|
||||||
|
|
||||||
menutext(c+160+40,50+16,MENUHIGHLIGHT(1),(MusicDevice<0||(numplayers > 1 && !MusicToggle)),(MusicToggle && (MusicDevice >= 0))?"ON":"OFF");
|
menutext(c+151+40,50+16,MENUHIGHLIGHT(1),(MusicDevice<0||(numplayers > 1 && !MusicToggle)),(MusicToggle && (MusicDevice >= 0))?"ON":"OFF");
|
||||||
|
|
||||||
menutext(c,50,MENUHIGHLIGHT(0),(FXDevice<0),"SOUND");
|
menutext(c,50,MENUHIGHLIGHT(0),(FXDevice<0),"SOUND");
|
||||||
menutext(c,50+16+16,MENUHIGHLIGHT(2),(FXDevice<0)||SoundToggle==0,"SOUND VOLUME");
|
menutext(c,50+16+16,MENUHIGHLIGHT(2),(FXDevice<0)||SoundToggle==0,"SOUND VOLUME");
|
||||||
|
@ -4291,12 +4291,12 @@ cheat_for_port_credits:
|
||||||
|
|
||||||
{
|
{
|
||||||
char *s[] = { "OFF", "LOCAL", "ALL" };
|
char *s[] = { "OFF", "LOCAL", "ALL" };
|
||||||
menutext(c+160+40,50+16+16+16+16,MENUHIGHLIGHT(4),(FXDevice<0)||SoundToggle==0,s[VoiceToggle]);
|
menutext(c+151+40,50+16+16+16+16,MENUHIGHLIGHT(4),(FXDevice<0)||SoundToggle==0,s[VoiceToggle]);
|
||||||
}
|
}
|
||||||
|
|
||||||
menutext(c+160+40,50+16+16+16+16+16,MENUHIGHLIGHT(5),(FXDevice<0)||SoundToggle==0,AmbienceToggle?"ON":"OFF");
|
menutext(c+151+40,50+16+16+16+16+16,MENUHIGHLIGHT(5),(FXDevice<0)||SoundToggle==0,AmbienceToggle?"ON":"OFF");
|
||||||
|
|
||||||
menutext(c+160+40,50+16+16+16+16+16+16,MENUHIGHLIGHT(6),(FXDevice<0)||SoundToggle==0,ReverseStereo?"ON":"OFF");
|
menutext(c+151+40,50+16+16+16+16+16+16,MENUHIGHLIGHT(6),(FXDevice<0)||SoundToggle==0,ReverseStereo?"ON":"OFF");
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include "duke3d.h"
|
#include "duke3d.h"
|
||||||
#include "osd.h"
|
#include "osd.h"
|
||||||
|
|
||||||
|
#ifdef RENDERTYPEWIN
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
extern char pow2char[];
|
extern char pow2char[];
|
||||||
|
|
||||||
extern char everyothertime;
|
extern char everyothertime;
|
||||||
|
@ -1310,7 +1315,8 @@ static void resetpspritevars(char g)
|
||||||
for (i=1;i<MAXPLAYERS;i++)
|
for (i=1;i<MAXPLAYERS;i++)
|
||||||
memcpy(&ps[i],&ps[0],sizeof(ps[0]));
|
memcpy(&ps[i],&ps[0],sizeof(ps[0]));
|
||||||
|
|
||||||
if (ud.recstat != 2) for (i=0;i<MAXPLAYERS;i++)
|
if (ud.recstat != 2)
|
||||||
|
for (i=0;i<MAXPLAYERS;i++)
|
||||||
{
|
{
|
||||||
ps[i].aim_mode = aimmode[i];
|
ps[i].aim_mode = aimmode[i];
|
||||||
ps[i].auto_aim = autoaim[i];
|
ps[i].auto_aim = autoaim[i];
|
||||||
|
@ -1387,9 +1393,9 @@ static void resetpspritevars(char g)
|
||||||
{
|
{
|
||||||
if (s->pal == 0)
|
if (s->pal == 0)
|
||||||
{
|
{
|
||||||
int k;
|
int k = 0;
|
||||||
|
|
||||||
for (k=0;k<MAXPLAYERS;k++)
|
for (;k<MAXPLAYERS;k++)
|
||||||
{
|
{
|
||||||
if (which_palookup == ps[k].palookup)
|
if (which_palookup == ps[k].palookup)
|
||||||
{
|
{
|
||||||
|
@ -1438,7 +1444,7 @@ static void resetpspritevars(char g)
|
||||||
|
|
||||||
static inline void clearfrags(void)
|
static inline void clearfrags(void)
|
||||||
{
|
{
|
||||||
short i = 0;
|
int i = 0;
|
||||||
|
|
||||||
while (i<MAXPLAYERS)
|
while (i<MAXPLAYERS)
|
||||||
ps[i].frag = ps[i].fraggedself = 0, i++;
|
ps[i].frag = ps[i].fraggedself = 0, i++;
|
||||||
|
@ -1652,7 +1658,7 @@ int enterlevel(int g)
|
||||||
{
|
{
|
||||||
if (loadboard(boardfilename,0,&ps[0].posx, &ps[0].posy, &ps[0].posz, &ps[0].ang,&ps[0].cursectnum) == -1)
|
if (loadboard(boardfilename,0,&ps[0].posx, &ps[0].posy, &ps[0].posz, &ps[0].ang,&ps[0].cursectnum) == -1)
|
||||||
{
|
{
|
||||||
initprintf("Map %s not found!\n",boardfilename);
|
initprintf("Map '%s' not found!\n",boardfilename);
|
||||||
//gameexit(tempbuf);
|
//gameexit(tempbuf);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -1669,7 +1675,7 @@ int enterlevel(int g)
|
||||||
p[3]='k';
|
p[3]='k';
|
||||||
p[4]=0;
|
p[4]=0;
|
||||||
}
|
}
|
||||||
if (!loadmaphack(levname)) initprintf("Loaded map hack file %s\n",levname);
|
if (!loadmaphack(levname)) initprintf("Loaded map hack file '%s'\n",levname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (loadboard(level_file_names[(ud.volume_number*MAXLEVELS)+ud.level_number],0,&ps[0].posx, &ps[0].posy, &ps[0].posz, &ps[0].ang,&ps[0].cursectnum) == -1)
|
else if (loadboard(level_file_names[(ud.volume_number*MAXLEVELS)+ud.level_number],0,&ps[0].posx, &ps[0].posy, &ps[0].posz, &ps[0].ang,&ps[0].cursectnum) == -1)
|
||||||
|
@ -1691,7 +1697,7 @@ int enterlevel(int g)
|
||||||
p[3]='k';
|
p[3]='k';
|
||||||
p[4]=0;
|
p[4]=0;
|
||||||
}
|
}
|
||||||
if (!loadmaphack(levname)) initprintf("Loaded map hack file %s\n",levname);
|
if (!loadmaphack(levname)) initprintf("Loaded map hack file '%s'\n",levname);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1705,7 +1711,7 @@ int enterlevel(int g)
|
||||||
|
|
||||||
if (loadboard(levname,1,&ps[0].posx, &ps[0].posy, &ps[0].posz, &ps[0].ang,&ps[0].cursectnum) == -1)
|
if (loadboard(levname,1,&ps[0].posx, &ps[0].posy, &ps[0].posz, &ps[0].ang,&ps[0].cursectnum) == -1)
|
||||||
{
|
{
|
||||||
initprintf("Map %s not found!\n",level_file_names[(ud.volume_number*MAXLEVELS)+ud.level_number]);
|
initprintf("Map '%s' not found!\n",level_file_names[(ud.volume_number*MAXLEVELS)+ud.level_number]);
|
||||||
//gameexit(tempbuf);
|
//gameexit(tempbuf);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -1721,7 +1727,7 @@ int enterlevel(int g)
|
||||||
p[3]='k';
|
p[3]='k';
|
||||||
p[4]=0;
|
p[4]=0;
|
||||||
}
|
}
|
||||||
if (!loadmaphack(levname)) initprintf("Loaded map hack file %s\n",levname);
|
if (!loadmaphack(levname)) initprintf("Loaded map hack file '%s'\n",levname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue