Subversion Repositories eduke32

Rev

Rev 8478 | Rev 8519 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8478 Rev 8484
Line 106... Line 106...
106
#pragma pack(pop)
106
#pragma pack(pop)
107
107
108
static int16_t g_definedsndnum[MAXSOUNDS];  // maps parse order index to g_sounds index
108
static int16_t g_definedsndnum[MAXSOUNDS];  // maps parse order index to g_sounds index
109
static int16_t g_sndnum[MAXSOUNDS];  // maps current order index to g_sounds index
109
static int16_t g_sndnum[MAXSOUNDS];  // maps current order index to g_sounds index
110
int32_t g_numsounds = 0;
110
int32_t g_numsounds = 0;
111
static int32_t mousecol, bstatus;
111
static int32_t bstatus;
112
112
113
static int32_t corruptchecktimer;
113
static int32_t corruptchecktimer;
114
static int32_t curcorruptthing=-1;
114
static int32_t curcorruptthing=-1;
115
115
116
static uint32_t templenrepquot=1;
116
static uint32_t templenrepquot=1;
Line 2342... Line 2342...
2342
{
2342
{
2343
    Bstrcpy(lo2, names[sprite[spritenum].picnum]);
2343
    Bstrcpy(lo2, names[sprite[spritenum].picnum]);
2344
}// end SpriteName
2344
}// end SpriteName
2345
2345
2346
2346
2347
static void m32_showmouse(void)
-
 
2348
{
-
 
2349
    int32_t i, col;
-
 
2350
-
 
2351
    mousecol = M32_THROB;
-
 
2352
-
 
2353
    if (whitecol > editorcolors[0])
-
 
2354
        col = whitecol - mousecol;
-
 
2355
    else col = whitecol + mousecol;
-
 
2356
-
 
2357
#ifdef USE_OPENGL
-
 
2358
    if (videoGetRenderMode() >= REND_POLYMOST)
-
 
2359
    {
-
 
2360
        renderDisableFog();
-
 
2361
        polymost_useColorOnly(true);
-
 
2362
    }
-
 
2363
#endif
-
 
2364
-
 
2365
    int const lores = !!(xdim <= 640);
-
 
2366
-
 
2367
    for (i = (3 - lores); i <= (7 >> lores); i++)
-
 
2368
    {
-
 
2369
        plotpixel(searchx+i,searchy,col);
-
 
2370
        plotpixel(searchx-i,searchy,col);
-
 
2371
        plotpixel(searchx,searchy-i,col);
-
 
2372
        plotpixel(searchx,searchy+i,col);
-
 
2373
    }
-
 
2374
-
 
2375
    for (i=1; i<=(2 >> lores); i++)
-
 
2376
    {
-
 
2377
        plotpixel(searchx+i,searchy,whitecol);
-
 
2378
        plotpixel(searchx-i,searchy,whitecol);
-
 
2379
        plotpixel(searchx,searchy-i,whitecol);
-
 
2380
        plotpixel(searchx,searchy+i,whitecol);
-
 
2381
    }
-
 
2382
-
 
2383
    i = (8 >> lores);
-
 
2384
-
 
2385
    plotpixel(searchx+i,searchy,editorcolors[0]);
-
 
2386
    plotpixel(searchx-i,searchy,editorcolors[0]);
-
 
2387
    plotpixel(searchx,searchy-i,editorcolors[0]);
-
 
2388
    plotpixel(searchx,searchy+i,editorcolors[0]);
-
 
2389
-
 
2390
    if (!lores)
-
 
2391
    {
-
 
2392
        for (i=1; i<=4; i++)
-
 
2393
        {
-
 
2394
            plotpixel(searchx+i,searchy,whitecol);
-
 
2395
            plotpixel(searchx-i,searchy,whitecol);
-
 
2396
            plotpixel(searchx,searchy-i,whitecol);
-
 
2397
            plotpixel(searchx,searchy+i,whitecol);
-
 
2398
        }
-
 
2399
    }
-
 
2400
-
 
2401
#ifdef USE_OPENGL
-
 
2402
    if (videoGetRenderMode() >= REND_POLYMOST)
-
 
2403
    {
-
 
2404
        renderEnableFog();
-
 
2405
        polymost_useColorOnly(false);
-
 
2406
    }
-
 
2407
#endif
-
 
2408
}
-
 
2409
-
 
2410
int32_t AskIfSure(const char *text)
2347
int32_t AskIfSure(const char *text)
2411
{
2348
{
2412
    int32_t retval=1;
2349
    int32_t retval=1;
2413
2350
2414
    if (in3dmode())
2351
    if (in3dmode())