Thread
:
[CS:GO] Team Logo Manager 1.4.2 [2016.04.09]
View Single Post
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
02-14-2015 , 22:29 Re: [CS:GO] Random Team Icons 1.0
#
3
Quote:
Originally Posted by
asherkin
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.
__________________
Donate
|
AUS-TG
|
Console
|
Dynamic Objects
Neuro Toxin
View Public Profile
Send a private message to Neuro Toxin
Visit Neuro Toxin's homepage!
Find More Posts by Neuro Toxin