mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 05:31:29 +00:00
Changed three filename buffers to be MAX_QPATH (not MAX_QPATH*2), filename lengths are limited to MAX_QPATH by engine and elsewhere in game logic.
This commit is contained in:
parent
73744a84c6
commit
5729c8c518
2 changed files with 3 additions and 3 deletions
|
@ -520,9 +520,9 @@ CG_RegisterClientModelname
|
|||
==========================
|
||||
*/
|
||||
static qboolean CG_RegisterClientModelname( clientInfo_t *ci, const char *modelName, const char *skinName, const char *headModelName, const char *headSkinName, const char *teamName ) {
|
||||
char filename[MAX_QPATH*2];
|
||||
char filename[MAX_QPATH];
|
||||
const char *headName;
|
||||
char newTeamName[MAX_QPATH*2];
|
||||
char newTeamName[MAX_QPATH];
|
||||
|
||||
if ( headModelName[0] == '\0' ) {
|
||||
headName = modelName;
|
||||
|
|
|
@ -972,7 +972,7 @@ UI_RegisterClientSkin
|
|||
==========================
|
||||
*/
|
||||
static qboolean UI_RegisterClientSkin( playerInfo_t *pi, const char *modelName, const char *skinName, const char *headModelName, const char *headSkinName , const char *teamName) {
|
||||
char filename[MAX_QPATH*2];
|
||||
char filename[MAX_QPATH];
|
||||
|
||||
if (teamName && *teamName) {
|
||||
Com_sprintf( filename, sizeof( filename ), "models/players/%s/%s/lower_%s.skin", modelName, teamName, skinName );
|
||||
|
|
Loading…
Reference in a new issue