make loadcrosshair cmd backward compatible
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3240 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -134,11 +134,11 @@ Texture *loadcrosshairtexture(const char *c)
|
||||
return crosshair;
|
||||
}
|
||||
|
||||
void loadcrosshair(char *w, char *c)
|
||||
void loadcrosshair(char *c, char *w)
|
||||
{
|
||||
int weapon = atoi(w);
|
||||
if(weapon>NUMGUNS) return;
|
||||
if(weapon<0) defaultcrosshair = loadcrosshairtexture(c);
|
||||
if(weapon<0 || strlen(w)==0) defaultcrosshair = loadcrosshairtexture(c);
|
||||
else crosshairs[weapon] = loadcrosshairtexture(c);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user