Compiler flag -DNOASM optimisation, demo playback fixed among other small things

This commit is contained in:
eukos 2015-09-03 19:17:58 +02:00
parent b55a563b24
commit e47a9de2de
34 changed files with 40 additions and 41 deletions

View file

@ -120,7 +120,7 @@ NGUNIX_OBJS = \
$(BUILDDIR)/cl_main.o \
$(BUILDDIR)/cl_parse.o \
$(BUILDDIR)/cl_tent.o \
$(BUILDDIR)/chase.o \
$(BUILDDIR)/cl_chase.o \
$(BUILDDIR)/cmd.o \
$(BUILDDIR)/common.o \
$(BUILDDIR)/console.o \
@ -353,7 +353,7 @@ $(BUILDDIR)/cl_parse.o : $(MOUNT_DIR)/cl_parse.c
$(BUILDDIR)/cl_tent.o : $(MOUNT_DIR)/cl_tent.c
$(DO_CC)
$(BUILDDIR)/chase.o : $(MOUNT_DIR)/chase.c
$(BUILDDIR)/cl_chase.o : $(MOUNT_DIR)/cl_chase.c
$(DO_CC)
$(BUILDDIR)/cmd.o : $(MOUNT_DIR)/cmd.c

View file

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
.data

View file

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#include "d_ifacea.h"

View file

@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#include "d_ifacea.h"

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#include "d_ifacea.h"

View file

@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "d_ifacea.h"
#include "asm_draw.h"

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#include "d_ifacea.h"

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#include "d_ifacea.h"

View file

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#if id386

View file

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#include "d_ifacea.h"

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define GLQUAKE 1 // don't include unneeded client defs
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#if id386

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#include "d_ifacea.h"

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#include "d_ifacea.h"

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#include "d_ifacea.h"

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#if id386broken

View file

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#include "d_ifacea.h"

View file

@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define GLQUAKE 1 // don't include unneeded client defs
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#if id386

View file

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#if id386

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#if id386

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#if id386

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#if id386

View file

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#if id386

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#if id386

View file

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
#include "asm_draw.h"
#if id386

View file

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef NOASM
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
.data

View file

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define GLQUAKE 1 // don't include unneeded client defs
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
// LATER should be id386-dependent, and have an equivalent C path

View file

@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define GLQUAKE 1 // don't include unneeded client defs
#include "asm_i386.h"
#include "quakeasm.h"
#include "asm.h"
//#include "d_ifacea.h" //don't include unneeded defs // 2001-12-28 Merged assembler files of Quake and QuakeWorld by Maddes
#if id386

View file

@ -309,7 +309,7 @@ void CL_PlayDemo_f (void)
if (Cmd_Argc() != 2)
{
Con_Printf ("playdemo <demoname> : plays a demo\n"); // 2000-01-21 Typo correction by Maddes
Con_Printf ("demo_play <demoname> : plays a demo\n"); // 2000-01-21 Typo correction by Maddes
return;
}

View file

@ -295,10 +295,10 @@ void CL_AdjustAngles (void)
if (up || down)
V_StopPitchDrift ();
if (cl.viewangles[PITCH] > 90)
cl.viewangles[PITCH] = 90;
if (cl.viewangles[PITCH] < -90)
cl.viewangles[PITCH] = -90;
if (cl.viewangles[PITCH] > (int)m_lockdown->value)
cl.viewangles[PITCH] = (int)m_lockdown->value;
if (cl.viewangles[PITCH] < (int)m_lockup->value)
cl.viewangles[PITCH] = (int)m_lockup->value;
}

View file

@ -303,7 +303,7 @@ void CL_NextDemo (void)
}
}
sprintf (str,"playdemo %s\n", cls.demos[cls.demonum]);
sprintf (str,"demo_play %s\n", cls.demos[cls.demonum]);
Cbuf_InsertText (str);
cls.demonum++;
}

View file

@ -501,7 +501,7 @@ void Cmd_Init (void)
Cmd_Argc
============
*/
int Cmd_Argc (void)
int Cmd_Argc (void)
{
return cmd_argc;
}
@ -511,7 +511,7 @@ int Cmd_Argc (void)
Cmd_Argv
============
*/
char *Cmd_Argv (int arg)
char *Cmd_Argv (int arg)
{
if ( (unsigned)arg >= cmd_argc )
return cmd_null_string;
@ -523,7 +523,7 @@ char *Cmd_Argv (int arg)
Cmd_Args
============
*/
char *Cmd_Args (void)
char *Cmd_Args (void)
{
return cmd_args;
}
@ -587,7 +587,7 @@ void Cmd_TokenizeString (char *text)
Cmd_AddCommand
============
*/
void Cmd_AddCommand (char *cmd_name, xcommand_t function)
void Cmd_AddCommand (char *cmd_name, xcommand_t function)
{
cmd_function_t *cmd;
@ -627,7 +627,7 @@ void Cmd_AddCommand (char *cmd_name, xcommand_t function)
Cmd_Exists
============
*/
qboolean Cmd_Exists (char *cmd_name)
qboolean Cmd_Exists (char *cmd_name)
{
cmd_function_t *cmd;
@ -884,7 +884,7 @@ A complete command line has been parsed, so try to execute it
FIXME: lookupnoadd the token to speed search?
============
*/
void Cmd_ExecuteString (char *text, cmd_source_t src)
void Cmd_ExecuteString (char *text, cmd_source_t src)
{
cmd_function_t *cmd;
cmdalias_t *a;

View file

@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// does, the entire thing will be redrawn for the next vid.numpages frames.
#define SBAR_HEIGHT 24
extern int sb_lines; // scan lines to draw
extern int sb_what_lines; // leilei - SCALED scan lines to draw
void Sbar_Init (void);