ref: 8c5dd9f934fff1961ce71e7d28739ab5bcf96f1c
parent: f4f62dc315d57fb6204c6967ffd56a4fab65761d
author: unknown <fabien@fabien-PC.(none)>
date: Sat Dec 15 16:18:40 EST 2012
Removed mode 0x3 references.
--- a/Engine/src/engine.c
+++ b/Engine/src/engine.c
@@ -23,10 +23,6 @@
#include <sys/types.h>
#include <sys/stat.h>
-#if (defined USE_OPENGL)
-#include "buildgl.h"
-#endif
-
#include "pragmas.h"
#include "platform.h"
@@ -2635,25 +2631,6 @@
umost[0] = shortptr1[0]-windowy1;
dmost[0] = shortptr2[0]-windowy1;
- /*
- * every cycle counts...and the CRC gets checked at the start, so this only
- * would trigger only if they've changed it in memory after loading (and what
- * would anyone do that for on purpose?), or if they've just defeated the
- * first CRC check...but if they've hacked the binary/source in that way,
- * then they'll just take this check out, too. In short, it ain't worth it.
- *
- * --ryan.
- */
-#if 0
- if (smostwallcnt < 0)
- if (getkensmessagecrc(FP_OFF(kensmessage)) != 0x56c764d4)
- {
- setvmode(0x3);
- printf("Nice try.\n");
- Error(EXIT_SUCCESS, "");
- }
-#endif
-
numhits = xdimen;
numscans = 0;
numbunches = 0;
@@ -3343,12 +3320,7 @@
int setgamemode(uint8_t davidoption, int32_t daxdim, int32_t daydim)
{
strcpy(kensmessage,"!!!! BUILD engine&tools programmed by Ken Silverman of E.G. RI. (c) Copyright 1995 Ken Silverman. Summary: BUILD = Ken. !!!!");
- if (getkensmessagecrc(FP_OFF(kensmessage)) != 0x56c764d4)
- {
- setvmode(0x3);
- printf("Nice try.\n");
- Error(EXIT_SUCCESS, "");
- }
+
return(_setgamemode(davidoption, daxdim, daydim));
}
--- a/Engine/src/pragmas.c
+++ b/Engine/src/pragmas.c
@@ -4,11 +4,6 @@
#include "platform.h"
#include "pragmas.h"
-uint32_t getkensmessagecrc(int32_t param) {
- return(0x56c764d4);
-}
-
-
void clearbuf(void *d, int32_t c, int32_t a)
{
int32_t *p = (int32_t*)d;
--- a/Engine/src/pragmas.h
+++ b/Engine/src/pragmas.h
@@ -22,9 +22,6 @@
swapchar(p1 + 1, p2 + xsiz);
}
-
-uint32_t getkensmessagecrc(int32_t param);
-
static __inline int32_t msqrtasm(uint32_t c)
{
uint32_t a,b;
--- a/Game/src/premap.c
+++ b/Game/src/premap.c
@@ -357,7 +357,8 @@
if(ud.screen_size < 0) ud.screen_size = 0;
else if(ud.screen_size > 63) ud.screen_size = 64;
- if(ud.screen_size == 0) flushperms();
+ if(ud.screen_size == 0)
+ flushperms();
ss = max(ud.screen_size-8,0);
@@ -367,7 +368,8 @@
y1 = ss; y2 = 200;
y1 += countfragbars();
- if (ud.screen_size >= 8) y2 -= (ss+34);
+ if (ud.screen_size >= 8)
+ y2 -= (ss+34);
y1 = scale(y1,ydim,200);
y2 = scale(y2,ydim,200);