Skip to content

Commit

Permalink
Patched to compile & launch
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Nov 3, 2018
1 parent d0ea30b commit a3c18be
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cl_dll/input_xash3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ void FWGSInput::IN_Move( float frametime, usercmd_t *cmd )
}
//if(ac_forwardmove || ac_sidemove)
//gEngfuncs.Con_Printf("Move: %f %f %f %f\n", ac_forwardmove, ac_sidemove, rel_pitch, rel_yaw);
#if 0
if( in_mlook.state & 1 )
{
void V_StopPitchDrift( void );
V_StopPitchDrift();
}
#endif

if( CL_IsDead() )
{
viewangles = dead_viewangles; // HACKHACK: see below
Expand Down
2 changes: 1 addition & 1 deletion dlls/dll_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
#endif // _WIN32

void DLLEXPORT GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals )
extern "C" void DLLEXPORT GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals )
{
memcpy(&g_engfuncs, pengfuncsFromEngine, sizeof(enginefuncs_t));
gpGlobals = pGlobals;
Expand Down
13 changes: 7 additions & 6 deletions mainui/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#include "Menu.h"
#include "menu.h"

enum m_state_e
{
Expand Down Expand Up @@ -136,15 +136,15 @@ void COM_FileBase ( const char *in, char *out )
int len, start, end;

len = strlen( in );

// scan backward for '.'
end = len - 1;
while ( end && in[end] != '.' && in[end] != '/' && in[end] != '\\' )
end--;

if ( in[end] != '.' ) // no '.', copy to end
end = len-1;
else
else
end--; // Found ',', copy to left of '.'


Expand All @@ -155,7 +155,7 @@ void COM_FileBase ( const char *in, char *out )

if ( in[start] != '/' && in[start] != '\\' )
start = 0;
else
else
start++;

// Length of new sting
Expand Down Expand Up @@ -1996,7 +1996,8 @@ void M_Quit_Draw (void)

for( int i = 0; i < 4; i++ )
{
M_PrintWhite( 16, 68 + i*8, quitMessage[msgNumber*4 + i] );
// center message
M_PrintWhite( 16 + 8 * 5, 68 + i*8, quitMessage[msgNumber*4 + i] );
}
/*M_Print (16, 52, " \n");
M_Print (16, 60, " \n");
Expand Down
3 changes: 1 addition & 2 deletions mainui/udll_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ GNU General Public License for more details.
*/

#include "menu.h"

#define EXPORT __declspec(dllexport)
#include "exportdef.h"

ui_enginefuncs_t engfuncs;
ui_globalvars_t *gpGlobals;
Expand Down

0 comments on commit a3c18be

Please sign in to comment.