Subversion Repositories eduke32

Rev

Rev 864 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 864 Rev 865
Line 10137... Line 10137...
10137
#ifdef RENDERTYPEWIN
10137
#ifdef RENDERTYPEWIN
10138
    backgroundidle = 0;
10138
    backgroundidle = 0;
10139
#endif
10139
#endif
10140
10140
10141
    OSD_SetLogFile("eduke32.log");
10141
    OSD_SetLogFile("eduke32.log");
10142
    OSD_SetParameters(10,0, 0,12, 4,12);
10142
    OSD_SetParameters(6,0, 0,12, 2,12);
10143
10143
10144
    wm_setapptitle(HEAD2);
10144
    wm_setapptitle(HEAD2);
10145
10145
10146
    initprintf("%s (%s)\n",apptitle,datetimestring);
10146
    initprintf("%s (%s)\n",apptitle,datetimestring);
10147
    initprintf("Copyright (c) 1996, 2003 3D Realms Entertainment\n");
10147
    initprintf("Copyright (c) 1996, 2003 3D Realms Entertainment\n");
Line 10507... Line 10507...
10507
#endif
10507
#endif
10508
        GAME_clearbackground,
10508
        GAME_clearbackground,
10509
        (int(*)(void))GetTime,
10509
        (int(*)(void))GetTime,
10510
        GAME_onshowosd
10510
        GAME_onshowosd
10511
    );
10511
    );
10512
    OSD_SetParameters(10,0, 0,12, 4,12);
-
 
10513
    OSD_SetVersionString(HEAD2, 10,0);
10512
    OSD_SetVersionString(HEAD2, 10,0);
10514
    registerosdcommands();
10513
    registerosdcommands();
10515
10514
10516
    if (setgamemode(ud.config.ScreenMode,ud.config.ScreenWidth,ud.config.ScreenHeight,ud.config.ScreenBPP) < 0)
10515
    if (setgamemode(ud.config.ScreenMode,ud.config.ScreenWidth,ud.config.ScreenHeight,ud.config.ScreenBPP) < 0)
10517
    {
10516
    {
Line 10793... Line 10792...
10793
    {
10792
    {
10794
        /* old demo playback */
10793
        /* old demo playback */
10795
        if (ver == BYTEVERSION_JF)   initprintf("Demo %s is for Regular edition.\n", d);
10794
        if (ver == BYTEVERSION_JF)   initprintf("Demo %s is for Regular edition.\n", d);
10796
        else if (ver == BYTEVERSION_JF+1) initprintf("Demo %s is for Atomic edition.\n", d);
10795
        else if (ver == BYTEVERSION_JF+1) initprintf("Demo %s is for Atomic edition.\n", d);
10797
        else if (ver == BYTEVERSION_JF+2) initprintf("Demo %s is for Shareware version.\n", d);
10796
        else if (ver == BYTEVERSION_JF+2) initprintf("Demo %s is for Shareware version.\n", d);
10798
        else OSD_Printf("Demo %s is of an incompatible version (%d).\n", d, ver);
10797
//        else OSD_Printf("Demo %s is of an incompatible version (%d).\n", d, ver);
10799
        kclose(recfilep);
10798
        kclose(recfilep);
10800
        ud.reccnt=0;
10799
        ud.reccnt=0;
10801
        demo_version = 0;
10800
        demo_version = 0;
10802
        return 0;
10801
        return 0;
10803
    }
10802
    }
Line 10863... Line 10862...
10863
    ud.clipping = ud.scrollmode = ud.overhead_on = ud.pause_on = 0;
10862
    ud.clipping = ud.scrollmode = ud.overhead_on = ud.pause_on = 0;
10864
10863
10865
    newgame(ud.volume_number,ud.level_number,ud.player_skill);
10864
    newgame(ud.volume_number,ud.level_number,ud.player_skill);
10866
    return(1);
10865
    return(1);
10867
corrupt:
10866
corrupt:
10868
    OSD_Printf("Demo %d header is corrupt.\n",which_demo);
10867
    OSD_Printf(OSDTEXT_DARKRED "Demo %d header is corrupt.\n",which_demo);
10869
    ud.reccnt = 0;
10868
    ud.reccnt = 0;
10870
    kclose(recfilep);
10869
    kclose(recfilep);
10871
    return 0;
10870
    return 0;
10872
}
10871
}
10873
10872
Line 11016... Line 11015...
11016
                {
11015
                {
11017
                    i = 0;
11016
                    i = 0;
11018
                    l = min(ud.reccnt,RECSYNCBUFSIZ);
11017
                    l = min(ud.reccnt,RECSYNCBUFSIZ);
11019
                    if (kdfread(recsync,sizeof(input)*ud.multimode,l/ud.multimode,recfilep) != l/ud.multimode)
11018
                    if (kdfread(recsync,sizeof(input)*ud.multimode,l/ud.multimode,recfilep) != l/ud.multimode)
11020
                    {
11019
                    {
11021
                        OSD_Printf("Demo %d is corrupt.\n", which_demo-1);
11020
                        OSD_Printf(OSDTEXT_DARKRED "Demo %d is corrupt.\n", which_demo-1);
11022
                        foundemo = 0;
11021
                        foundemo = 0;
11023
                        ud.reccnt = 0;
11022
                        ud.reccnt = 0;
11024
                        kclose(recfilep);
11023
                        kclose(recfilep);
11025
                        g_player[myconnectindex].ps->gm |= MODE_MENU;
11024
                        g_player[myconnectindex].ps->gm |= MODE_MENU;
11026
                        goto RECHECK;
11025
                        goto RECHECK;