From: Ketmar Dark Date: Mon, 21 Aug 2017 21:01:24 +0000 (+0300) Subject: removed some unused code X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=dc991fd72bbbb882377ce4a481707f8c6bc1e04d;p=d2df-sdl.git removed some unused code --- diff --git a/src/game/g_gfx.pas b/src/game/g_gfx.pas index 4fcd318..e96350e 100644 --- a/src/game/g_gfx.pas +++ b/src/game/g_gfx.pas @@ -53,7 +53,7 @@ function g_GFX_GetMax(): Integer; procedure g_GFX_OnceAnim(X, Y: Integer; Anim: TAnimation; AnimType: Byte = 0); -procedure g_Mark(x, y, Width, Height: Integer; t: Byte; st: Boolean); +//procedure g_Mark(x, y, Width, Height: Integer; t: Byte; st: Boolean); procedure g_GFX_Update(); procedure g_GFX_Draw(); @@ -148,13 +148,11 @@ begin end; -procedure g_Mark(x, y, Width, Height: Integer; t: Byte; st: Boolean); {$IF DEFINED(HAS_COLLIDE_BITMAP)} +procedure g_Mark(x, y, Width, Height: Integer; t: Byte; st: Boolean); var yy, y2, xx, x2: Integer; -{$ENDIF} begin -{$IF DEFINED(HAS_COLLIDE_BITMAP)} if x < 0 then begin Width := Width + x; @@ -199,16 +197,15 @@ begin for xx := x to x2 do gCollideMap[yy][xx] := gCollideMap[yy][xx] and t; end; -{$ENDIF} end; +{$ENDIF} + -procedure CreateCollideMap(); {$IF DEFINED(HAS_COLLIDE_BITMAP)} +procedure CreateCollideMap(); var a: Integer; -{$ENDIF} begin -{$IF DEFINED(HAS_COLLIDE_BITMAP)} g_Game_SetLoadingText(_lc[I_LOAD_COLLIDE_MAP]+' 1/6', 0, False); SetLength(gCollideMap, gMapInfo.Height+1); for a := 0 to High(gCollideMap) do @@ -278,14 +275,16 @@ begin g_Mark(X, Y, Width, Height, MARK_WALL, True); end; end; -{$ENDIF} end; +{$ENDIF} + procedure g_GFX_Init(); begin - CreateCollideMap(); + //CreateCollideMap(); end; + procedure g_GFX_Free(); var a: Integer; diff --git a/src/game/g_map.pas b/src/game/g_map.pas index cc6d9d2..d6f9657 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -2379,7 +2379,7 @@ begin with gWalls[ID] do begin Enabled := True; - g_Mark(X, Y, Width, Height, MARK_DOOR, True); + //g_Mark(X, Y, Width, Height, MARK_DOOR, True); if g_Game_IsServer and g_Game_IsNet then MH_SEND_PanelState(PanelType, ID); end; @@ -2390,7 +2390,7 @@ begin with gWalls[ID] do begin Enabled := False; - g_Mark(X, Y, Width, Height, MARK_DOOR, False); + //g_Mark(X, Y, Width, Height, MARK_DOOR, False); if g_Game_IsServer and g_Game_IsNet then MH_SEND_PanelState(PanelType, ID); end; @@ -2433,6 +2433,7 @@ begin begin LiftType := t; + { g_Mark(X, Y, Width, Height, MARK_LIFT, False); if LiftType = 0 then @@ -2443,6 +2444,7 @@ begin g_Mark(X, Y, Width, Height, MARK_LIFTLEFT, True) else if LiftType = 3 then g_Mark(X, Y, Width, Height, MARK_LIFTRIGHT, True); + } if g_Game_IsServer and g_Game_IsNet then MH_SEND_PanelState(PanelType, ID); end;