X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=66d277443a50e8f511fd8d0f254685a493b25b80;hb=89d242f641ed8a2ccd6b1935f64db62dc9bcf154;hp=9adfa22fdb090e853788b848391d0312a645827a;hpb=88ce644db1b40111bdb380f4357fa59bdb5173be;p=d2df-sdl.git diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 9adfa22..66d2774 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -821,6 +821,9 @@ var wad, map: string; mapstr: string; begin + s1 := ''; + s2 := ''; + s3 := ''; pc := g_Player_GetCount; e_TextureFontGetSize(gStdFont, cw, ch); @@ -1227,7 +1230,7 @@ begin if (not g_Game_IsClient) and ( ( - (e_KeyPressed(IK_RETURN) or e_KeyPressed(IK_SPACE)) + (e_KeyPressed(IK_RETURN) or e_KeyPressed(IK_KPRETURN) or e_KeyPressed(IK_SPACE)) and (not gJustChatted) and (not gConsoleShow) and (not gChatShow) and (g_ActiveWindow = nil) ) @@ -2953,12 +2956,14 @@ begin g_Console_Draw(); + {FIXME if g_debug_Sounds and gGameOn then begin for w := 0 to High(e_SoundsArray) do for h := 0 to e_SoundsArray[w].nRefs do e_DrawPoint(1, w+100, h+100, 255, 0, 0); end; + } if gShowFPS then begin @@ -2982,7 +2987,7 @@ begin g_Texture_DeleteAll(); g_Frames_DeleteAll(); g_Menu_Free(); - + if NetInitDone then g_Net_Free; // Íàäî óäàëèòü êàðòó ïîñëå òåñòà: @@ -3585,7 +3590,7 @@ begin ProcessLoading(); e_PollInput(); - + if e_KeyPressed(IK_ESCAPE) or e_KeyPressed(IK_SPACE) then begin State := 0; @@ -3674,7 +3679,7 @@ begin gWADHash := MD5File(MapsDir + NewWAD); g_Game_LoadWAD(NewWAD); end else - // hash recieved in MC_RECV_GameEvent -> NET_EV_MAPSTART + // hash recieved in MC_RECV_GameEvent -> NET_EV_MAPSTART g_Game_ClientWAD(NewWAD, gWADHash); end else ResName := Map; @@ -3779,7 +3784,7 @@ begin gCoopTotalSecrets := 0; gLastMap := False; end; - + g_Game_ExecuteEvent('onmapstart'); end; @@ -4190,7 +4195,7 @@ begin else Options := Options and (not GAME_OPTION_ALLOWEXIT); end; - + if (LongBool(Options and GAME_OPTION_ALLOWEXIT)) then g_Console_Add(_lc[I_MSG_ALLOWEXIT_ON]) else @@ -4234,7 +4239,7 @@ begin else Options := Options and (not GAME_OPTION_BOTVSPLAYER); end; - + if (LongBool(Options and GAME_OPTION_BOTVSPLAYER)) then g_Console_Add(_lc[I_MSG_BOTSVSPLAYERS_ON]) else @@ -4751,7 +4756,7 @@ var s, pw: String; chstr: string; cmd: string; - pl: pTNetClient; + pl: pTNetClient = nil; plr: TPlayer; prt: Word; nm: Boolean; @@ -6065,7 +6070,7 @@ begin MapList := nil; MapIndex := -1; - if not FileExists(FileName) then Exit; + if not FileExists(FileName) then Exit; AssignFile(ListFile, FileName); Reset(ListFile);