View Single Post
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 02-14-2015 , 22:29   Re: [CS:GO] Random Team Icons 1.0
Reply With Quote #3

Quote:
Originally Posted by asherkin View Post
You should use PLATFORM_MAX_PATH rather than picking arbitrary sizes for path buffers.
filename[strlen(filename) - 3] = '\0' is a slightly quicker hack than copying to a new buffer.
While it doesn't really matter, might want to cache the mp_teamlogo_* handles in OnPluginStart().
Not hardcoding the default logos would be better (SM's filesystem functions can read inside the VPK).
Agreed, I'll do your suggestions now.
__________________
Neuro Toxin is offline