diff options
Diffstat (limited to 'games/q3cellshading/files/patch-code-ui-ui_players.c')
-rw-r--r-- | games/q3cellshading/files/patch-code-ui-ui_players.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/games/q3cellshading/files/patch-code-ui-ui_players.c b/games/q3cellshading/files/patch-code-ui-ui_players.c new file mode 100644 index 000000000000..d1be1bf702c3 --- /dev/null +++ b/games/q3cellshading/files/patch-code-ui-ui_players.c @@ -0,0 +1,18 @@ +--- ./code/ui/ui_players.c.orig Wed May 31 18:55:11 2006 ++++ ./code/ui/ui_players.c Wed May 31 19:10:27 2006 +@@ -90,13 +90,13 @@ + + if ( weaponNum == WP_MACHINEGUN || weaponNum == WP_GAUNTLET || weaponNum == WP_BFG ) { + strcpy( path, item->world_model[0] ); +- COM_StripExtension( path, path ); ++ COM_StripExtension( path, path, sizeof(path) ); + strcat( path, "_barrel.md3" ); + pi->barrelModel = trap_R_RegisterModel( path ); + } + + strcpy( path, item->world_model[0] ); +- COM_StripExtension( path, path ); ++ COM_StripExtension( path, path, sizeof(path) ); + strcat( path, "_flash.md3" ); + pi->flashModel = trap_R_RegisterModel( path ); + |