mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Updates
This commit is contained in:
parent
8e1b2ea296
commit
9f669cff1c
5 changed files with 27 additions and 3 deletions
|
@ -254,7 +254,7 @@ if (WITH_CLIENT)
|
|||
# Gamespy dependency
|
||||
add_dependencies(openmohaa gcd)
|
||||
target_link_libraries(openmohaa PRIVATE gcd)
|
||||
target_include_directories(openmohaa PUBLIC "code/qcommon" "code/script" "code/gamespy" "code/server" "code/client" "code/uilib" "code/SDL2/include" "code/jpeg-8c")
|
||||
target_include_directories(openmohaa PUBLIC "code/qcommon" "code/script" "code/gamespy" "code/server" "code/client" "code/uilib" "code/SDL2/include-2.0.22" "code/jpeg-8c")
|
||||
set_target_properties(openmohaa PROPERTIES OUTPUT_NAME "openmohaa${TARGET_BASE_SUFFIX}${TARGET_ARCH_SUFFIX}${TARGET_CONFIG_SUFFIX}")
|
||||
|
||||
if(WIN32)
|
||||
|
|
|
@ -3174,7 +3174,7 @@ void CL_Init( void ) {
|
|||
}
|
||||
|
||||
// ~ and `, as keys and characters
|
||||
cl_consoleKeys = Cvar_Get( "cl_consoleKeys", "~ ` 0x7e 0x60 0x11e", CVAR_ARCHIVE );
|
||||
cl_consoleKeys = Cvar_Get( "cl_consoleKeys", "~ ` 0x7e 0x60", CVAR_ARCHIVE );
|
||||
|
||||
// userinfo
|
||||
name = Cvar_Get ("name", "UnnamedSoldier", CVAR_USERINFO | CVAR_ARCHIVE );
|
||||
|
|
|
@ -293,6 +293,23 @@ int R_MarkFragmentsForInlineModel(clipHandle_t bmodel, const vec3_t angles, cons
|
|||
const vec3_t* points, const vec3_t projection, int maxPoints, vec3_t pointBuffer,
|
||||
int maxFragments, markFragment_t* fragmentBuffer, float radiusSquared);
|
||||
|
||||
|
||||
/*
|
||||
=============================================================
|
||||
|
||||
SHADE
|
||||
|
||||
=============================================================
|
||||
*/
|
||||
void RB_CalcColorFromConstant(unsigned char* dstColors, unsigned char* constantColor);
|
||||
void RB_CalcRGBFromDot(unsigned char* colors, float alphaMin, float alphaMax);
|
||||
void RB_CalcRGBFromOneMinusDot(unsigned char* colors, float alphaMin, float alphaMax);
|
||||
void RB_CalcAlphaFromConstant(unsigned char* dstColors, int constantAlpha);
|
||||
void RB_CalcAlphaFromDot(unsigned char* colors, float alphaMin, float alphaMax);
|
||||
void RB_CalcAlphaFromOneMinusDot(unsigned char* colors, float alphaMin, float alphaMax);
|
||||
void RB_CalcAlphaFromTexCoords(unsigned char* colors, float alphaMin, float alphaMax, int alphaMinCap, int alphaCap, float sWeight, float tWeight, float* st);
|
||||
void RB_CalcRGBFromTexCoords(unsigned char* colors, float alphaMin, float alphaMax, int alphaMinCap, int alphaCap, float sWeight, float tWeight, float* st);
|
||||
|
||||
/*
|
||||
=============================================================
|
||||
|
||||
|
|
|
@ -500,7 +500,10 @@ static void ComputeShaderColors( shaderStage_t *pStage, vec4_t baseColor, vec4_t
|
|||
baseColor[0] =
|
||||
baseColor[1] =
|
||||
baseColor[2] = overbright;
|
||||
break;
|
||||
break;
|
||||
case CGEN_GLOBAL_COLOR:
|
||||
RB_CalcColorFromConstant((unsigned char*)tess.svars.colors, backEnd.color2D);
|
||||
break;
|
||||
case CGEN_IDENTITY_LIGHTING:
|
||||
case CGEN_BAD:
|
||||
break;
|
||||
|
|
|
@ -213,6 +213,10 @@ static keyNum_t IN_TranslateSDLToQ3Key( SDL_Keysym *keysym, qboolean down )
|
|||
// These happen to match the ASCII chars
|
||||
key = (int)keysym->sym;
|
||||
}
|
||||
else if (keysym->scancode == SDL_SCANCODE_GRAVE)
|
||||
{
|
||||
key = '`';
|
||||
}
|
||||
else
|
||||
{
|
||||
switch( keysym->sym )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue