summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4a8853c)
raw | patch | inline | side by side (parent: 4a8853c)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 5 May 2023 11:26:21 +0000 (14:26 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 09:38:58 +0000 (12:38 +0300) |
src/game/renders/opengl/r_map.pas | patch | blob | history | |
src/game/renders/opengl/r_render.pas | patch | blob | history |
index eba81403044209ce9ace6903bc3d83c22bb5850e..e04405795493fda75933b7d211339e470ec91ad2 100644 (file)
t := Items[it.ItemType].tex;
tex := t.GetTexture(Items[it.ItemType].frame);
r_Draw_TextureRepeat(tex, xx, yy, tex.width, tex.height, false, 255, 255, 255, 255, false);
- if DebugFrames then
+ if DebugFrames and not (gGameSettings.GameType in [GT_SERVER, GT_CLIENT]) then
begin
r_Draw_Rect(
xx + it.obj.rect.x, // it.obj.x + it.obj.rect.x,
da := mon.GameDirection;
r_Draw_MultiTextureRepeat(t, mon.DirAnim[a, da], false, xx + dx, yy + dy, t.width, t.height, flip, 255, 255, 255, 255, false);
end;
- if DebugFrames then
+ if DebugFrames and not (gGameSettings.GameType in [GT_SERVER, GT_CLIENT]) then
begin
r_Draw_Rect(
xx + mon.obj.rect.x, // mon.obj.x + mon.obj.rect.x,
0, 255, 0, 255
);
end;
- if DebugHealth and mon.alive then
+ if DebugHealth and mon.alive and not (gGameSettings.GameType in [GT_SERVER, GT_CLIENT]) then
begin
r_Common_DrawText(
IntToStr(mon.MonsterHealth),
r_Map_DrawPlayerModel(p.Model, x, y, alpha);
end;
- if DebugFrames then
+ if DebugFrames and not (gGameSettings.GameType in [GT_SERVER, GT_CLIENT]) then
begin
r_Draw_Rect(
x + p.obj.rect.x, // p.obj.x + p.obj.rect.x,
);
end;
- if DebugHealth and p.alive then
+ if DebugHealth and p.alive and not (gGameSettings.GameType in [GT_SERVER, GT_CLIENT]) then
begin
r_Common_DrawText(
IntToStr(p.health) + '/' + IntToStr(p.armor),
g_Anim_GetFrameByTime(ShotAnim[typ].anim, (gTime - Shots[i].time) DIV GAME_TICK, count, frame);
tex := t.GetTexture(frame);
r_Draw_TextureRepeatRotate(tex, xx - ShotAnim[typ].x, yy - ShotAnim[typ].y, tex.width, tex.height, false, 255, 255, 255, 255, false, pX, pY, a);
- if DebugFrames then
+ if DebugFrames and not (gGameSettings.GameType in [GT_SERVER, GT_CLIENT]) then
begin
r_Draw_Rect(
xx + Shots[i].obj.rect.x, // Shots[i].obj.x + Shots[i].obj.rect.x,
t := FlagTextures[i];
tex := t.GetTexture(FlagFrame);
r_Draw_TextureRepeat(tex, xx + dx, yy + 1, tex.width, tex.height, flip, 255, 255, 255, 255, false);
- if DebugFrames then
+ if DebugFrames and not (gGameSettings.GameType in [GT_SERVER, GT_CLIENT]) then
begin
r_Draw_Rect(
xx + gFlags[i].obj.rect.x, // gFlags[i].obj.x + gFlags[i].obj.rect.x,
index a16a37d8508ece44560788ccbd0c33d82e0bfad6..8d325446abdca67f84d294ac5d9b80faec5a1777 100644 (file)
r_Console_Draw(false);
- if DebugSound and gGameOn then
+ if DebugSound and gGameOn and not (gGameSettings.GameType in [GT_SERVER, GT_CLIENT]) then
begin
for i := 0 to High(e_SoundsArray) do
for j := 0 to e_SoundsArray[i].nRefs do