* Another bugfix in the .dmod decompresser, fixes issue with Attack of the veggies

* (Windows) Holding Shift in addition to Tab will cause "super turbo" mode, speeding up the game faster than just holding Tab.  (Secret tip:  If you really want to see speed, hold down the Control key too)

git-svn-id: svn://rtsoft.com/rtsvn/projects/RTDink@1525 353e56fe-9613-0410-8469-b96ad8e6f29c
This commit is contained in:
seth 2017-10-18 07:15:53 +00:00
parent e0b2d2e5f0
commit f1bf68da44
12 changed files with 176 additions and 17 deletions

View file

@ -1065,7 +1065,23 @@ void OnGameMenuRender(VariantList *pVList)
if (DinkGetSpeedUpMode())
{
//3x speed
for (int i = 0; i < 2; i++)
int speedup = 2;
#ifdef WINAPI
if (GetKeyState(VK_SHIFT) & 0xfe)
{
speedup = 8; //super turbo mode
if (GetKeyState(VK_CONTROL) & 0xfe)
{
speedup *= 3; //super turbo mode
}
}
#endif
for (int i = 0; i < speedup; i++)
{
//GetApp()->SetGameTick(GetApp()->GetGameTick() + GetApp()->GetDeltaTick() * 3);
//GetApp()->GetGameTimer()->Update();