summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8f8394)
raw | patch | inline | side by side (parent: e8f8394)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 24 Apr 2016 09:03:14 +0000 (12:03 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sun, 24 Apr 2016 09:03:14 +0000 (12:03 +0300) |
src/game/g_map.pas | patch | blob | history | |
src/game/g_window.pas | patch | blob | history |
diff --git a/src/game/g_map.pas b/src/game/g_map.pas
index 5bca6b012ad82226e39827f88ec5c92fd89d7add..6b6b59f6244cbb5c6d3937ac74a0501a2cdcb1f8 100644 (file)
--- a/src/game/g_map.pas
+++ b/src/game/g_map.pas
f := meta.MetaItems[SMetaFrameDelay];
if f < 0 then f := 0;
// rounding ;-)
- c := f mod 27;
+ c := f mod 28;
if c < 13 then c := 0 else c := 1;
- f := (f div 27)+c;
+ f := (f div 28)+c;
if f < 1 then f := 1 else if f > 255 then f := 255;
_speed := f;
except
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index f711ab2149a49a1ca504bb506c1c84c32ae44eef..5e7e926727f3989e0db09c1867e9750930e65c0b 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
if wNeedTimeReset then
begin
- Time_Delta := (27777 div 1000);
+ Time_Delta := 28{(27777 div 1000)};
wNeedTimeReset := False;
end;
- t := Time_Delta div (27777 div 1000);
+ t := Time_Delta div 28{(27777 div 1000)};
if t > 0 then
begin
flag := True;
// Âðåìÿ ïðåäûäóùåãî îáíîâëåíèÿ:
if flag then
begin
- Time_Old := Time - (Time_Delta mod (27777 div 1000));
+ Time_Old := Time - (Time_Delta mod 28{(27777 div 1000)});
if (not wMinimized) then
begin
Draw();