draw red dot code-wise

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3239 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-10-25 13:39:05 +00:00
parent 046758ab31
commit f039d3ece4
4 changed files with 38 additions and 13 deletions
+3 -2
View File
@@ -822,8 +822,9 @@ void writecfg()
if(!f) return;
fprintf(f, "// automatically written on exit, DO NOT MODIFY\n// delete this file to have defaults.cfg overwrite these settings\n// modify settings in game, or put settings in autoexec.cfg to override anything\n\n");
fprintf(f, "name %s\nskin %d\n", player1->name, player1->nextskin);
extern Texture *crosshair;
fprintf(f, "loadcrosshair %s\n", crosshair->name+strlen("packages/misc/crosshairs/"));
extern Texture *defaultcrosshair, *crosshairs[NUMGUNS];
fprintf(f, "loadcrosshair -1 %s\n", defaultcrosshair->name+strlen("packages/misc/crosshairs/"));
loopi(NUMGUNS) if(crosshairs[i]) fprintf(f, "loadcrosshair %d %s\n", i, crosshairs[i]->name+strlen("packages/misc/crosshairs/"));
extern int lowfps, highfps;
fprintf(f, "fpsrange %d %d\n", lowfps, highfps);
fprintf(f, "\n");