* 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

@ -671,9 +671,21 @@ void fill_whole_hard(void)
{
for (int y = 0; y < 50; y++)
{
g_dglos.g_hitmap.x[offx +x].y[offy+y] = g_hmap.tile[ realhard(til) ].x[x].y[y];
int tileToWrite = realhard(til);
if (tileToWrite >= 0 && tileToWrite < 800)
{
g_dglos.g_hitmap.x[offx + x].y[offy + y] = g_hmap.tile[tileToWrite].x[x].y[y];
}
else
{
LogMsg("Avoiding crash, it tried to write hardness data to block %d from illegal tile %d",til, tileToWrite);
goto skip;
}
}
}
skip:;
}
}