git-svn-id: https://svn.eduke32.com/eduke32@837 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-07-04 01:43:45 +00:00
parent 2abab26c25
commit 275fdc8552
3 changed files with 8 additions and 6 deletions

View file

@ -702,12 +702,14 @@ int OSD_HandleChars(void)
if (findsymbol(osdedittmp, tabc->next)) if (findsymbol(osdedittmp, tabc->next))
{ {
symbol_t *symb=tabc; symbol_t *symb=tabc;
int maxwidth = 0, x = 0; int maxwidth = 0, x = 0, num = 0;
while (symb && symb != lastmatch) while (symb && symb != lastmatch)
{ {
int diffpt; int diffpt;
num++;
if (lastmatch) if (lastmatch)
{ {
diffpt = OSD_FindDiffPoint(symb->name,lastmatch->name); diffpt = OSD_FindDiffPoint(symb->name,lastmatch->name);
@ -722,7 +724,7 @@ int OSD_HandleChars(void)
lastmatch = symb; lastmatch = symb;
symb=findsymbol(osdedittmp, lastmatch->next); symb=findsymbol(osdedittmp, lastmatch->next);
} }
OSD_Printf("Completions for '%s':\n",osdedittmp); OSD_Printf("Found %d completions for '%s':\n",num,osdedittmp);
maxwidth += 3; maxwidth += 3;
symb = tabc; symb = tabc;
OSD_Printf(" "); OSD_Printf(" ");

View file

@ -54,7 +54,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <windows.h> #include <windows.h>
#include <shellapi.h> #include <shellapi.h>
extern int getversionfromwebsite(char *buffer); extern int getversionfromwebsite(char *buffer);
#define BUILDDATE 20080702 #define BUILDDATE 20080703
#define UPDATEINTERVAL 604800 // 1w #define UPDATEINTERVAL 604800 // 1w
#endif #endif
@ -10464,8 +10464,8 @@ void app_main(int argc,const char **argv)
(int(*)(void))GetTime, (int(*)(void))GetTime,
GAME_onshowosd GAME_onshowosd
); );
OSD_SetParameters(0,10, 0,12, 4,12); OSD_SetParameters(10,0, 0,12, 4,12);
OSD_SetVersionString(HEAD2,0,0); OSD_SetVersionString(HEAD2, 10,0);
registerosdcommands(); registerosdcommands();
if (setgamemode(ud.config.ScreenMode,ud.config.ScreenWidth,ud.config.ScreenHeight,ud.config.ScreenBPP) < 0) if (setgamemode(ud.config.ScreenMode,ud.config.ScreenWidth,ud.config.ScreenHeight,ud.config.ScreenBPP) < 0)

View file

@ -1240,7 +1240,7 @@ int registerosdcommands(void)
OSD_RegisterFunction("fileinfo","fileinfo <file>: gets a file's information", osdcmd_fileinfo); OSD_RegisterFunction("fileinfo","fileinfo <file>: gets a file's information", osdcmd_fileinfo);
for (i=0;i<NUMGAMEFUNCTIONS;i++) for (i=0;i<NUMGAMEFUNCTIONS-1;i++)
{ {
char *t; char *t;
Bsprintf(tempbuf,"gamefunc_%s",gamefunctions[i]); Bsprintf(tempbuf,"gamefunc_%s",gamefunctions[i]);