From 738edfb248ddb9c8b7f2d5633f1b3722f0600a17 Mon Sep 17 00:00:00 2001 From: brunzelchen Date: Tue, 9 Mar 2010 21:13:01 +0000 Subject: 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 --- Game/Code/Screens/UScreenEditSub.pas | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'Game/Code/Screens') 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; -- cgit v1.2.3