aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-03-09 21:13:01 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-03-09 21:13:01 +0000
commit738edfb248ddb9c8b7f2d5633f1b3722f0600a17 (patch)
treeaa10b4a7316a42bf2ff8128f86918bbee1f7ad55 /Game/Code
parentaf048a3b2b8a239c818f1be7e5b96436a57dec27 (diff)
downloadusdx-738edfb248ddb9c8b7f2d5633f1b3722f0600a17.tar.gz
usdx-738edfb248ddb9c8b7f2d5633f1b3722f0600a17.tar.xz
usdx-738edfb248ddb9c8b7f2d5633f1b3722f0600a17.zip
bugfix editor: negative VideoGap
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2189 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Screens/UScreenEditSub.pas26
1 files changed, 8 insertions, 18 deletions
diff --git a/Game/Code/Screens/UScreenEditSub.pas b/Game/Code/Screens/UScreenEditSub.pas
index f4341022..d7c2859a 100644
--- a/Game/Code/Screens/UScreenEditSub.pas
+++ b/Game/Code/Screens/UScreenEditSub.pas
@@ -212,20 +212,15 @@ begin
SDLK_8:
begin
- temp := round(AktSong.VideoGAP*100);
-
// Increase VideoGAP
if SDL_ModState = 0 then
- temp := temp + 1; //10ms
+ temp := 1; //10ms
if SDL_ModState = KMOD_LSHIFT then
- temp := temp + 10; //100ms
+ temp := 10; //100ms
if SDL_ModState = KMOD_LCTRL then
- temp := temp + 100; //1000ms
+ temp := 100; //1000ms
- AktSong.VideoGAP := temp/100;
-
- if AktSong.VideoGAP<0 then
- AktSong.Start := (AktSong.VideoGAP*-1);
+ AktSong.VideoGap := (round(AktSong.VideoGAP*100) + temp)/100;
if PlayVideo then
StartVideo;
@@ -233,20 +228,15 @@ begin
SDLK_7:
begin
- temp := round(AktSong.VideoGAP*100);
-
// Decrease VideoGAP
if SDL_ModState = 0 then
- temp := temp - 1; //10ms
+ temp := -1; //10ms
if SDL_ModState = KMOD_LSHIFT then
- temp := temp - 10; //100ms
+ temp := -10; //100ms
if SDL_ModState = KMOD_LCTRL then
- temp := temp - 100; //1000ms
-
- AktSong.VideoGAP := temp/100;
+ temp := -100; //1000ms
- if AktSong.VideoGAP<0 then
- AktSong.Start := (AktSong.VideoGAP*-1);
+ AktSong.VideoGap := (round(AktSong.VideoGAP*100) + temp)/100;
if PlayVideo then
StartVideo;