移除旧的GameOver判定并统一顶部溢出失败逻辑
This commit is contained in:
+12
-6
@@ -188,8 +188,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
else
|
||||
{
|
||||
Fixing();
|
||||
DeleteLines();
|
||||
gameOverFlag = GameOver();
|
||||
if (!gameOverFlag)
|
||||
{
|
||||
DeleteLines();
|
||||
}
|
||||
}
|
||||
|
||||
if (!gameOverFlag)
|
||||
@@ -255,8 +257,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
else
|
||||
{
|
||||
Fixing();
|
||||
DeleteLines();
|
||||
gameOverFlag = GameOver();
|
||||
if (!gameOverFlag)
|
||||
{
|
||||
DeleteLines();
|
||||
}
|
||||
}
|
||||
break;
|
||||
case VK_UP:
|
||||
@@ -266,8 +270,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
case VK_SPACE:
|
||||
DropDown();
|
||||
Fixing();
|
||||
DeleteLines();
|
||||
gameOverFlag = GameOver();
|
||||
if (!gameOverFlag)
|
||||
{
|
||||
DeleteLines();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user