Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions code/cgame/cg_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define STAT_MINUS 10 // num frame for '-' stats digit

#define ICON_SIZE 48
#ifdef CHAR_WIDTH
#undef CHAR_WIDTH
#endif
#define CHAR_WIDTH 32
#define CHAR_HEIGHT 48
#define TEXT_ICON_SPACE 4
Expand Down
5 changes: 5 additions & 0 deletions code/qcommon/files.c
Original file line number Diff line number Diff line change
Expand Up @@ -2932,6 +2932,11 @@ void FS_AddGameDirectory( const char *path, const char *dir ) {
// Get .pk3 files
pakfiles = Sys_ListFiles(curpath, ".pk3", NULL, &numfiles, qfalse);

if (!pakfiles) {
Com_Printf("No pakfiles in %s path\n", curpath);
return;
}

qsort( pakfiles, numfiles, sizeof(char*), paksort );

if ( fs_numServerPaks ) {
Expand Down
3 changes: 3 additions & 0 deletions code/renderergl2/tr_shader.c
Original file line number Diff line number Diff line change
Expand Up @@ -2787,6 +2787,9 @@ static shader_t *GeneratePermanentShader( void ) {

for ( b = 0 ; b < NUM_TEXTURE_BUNDLES ; b++ ) {
size = newShader->stages[i]->bundle[b].numTexMods * sizeof( texModInfo_t );
if (!size) {
continue;
}
newShader->stages[i]->bundle[b].texMods = ri.Hunk_Alloc( size, h_low );
Com_Memcpy( newShader->stages[i]->bundle[b].texMods, stages[i].bundle[b].texMods, size );
}
Expand Down