From 2d3557032bd96e039cad2f4348a1df65f93b4de2 Mon Sep 17 00:00:00 2001 From: Xue Fanyu <127591077+fan4w@users.noreply.github.com> Date: Wed, 31 May 2023 13:14:53 +0800 Subject: [PATCH] fix: Change an int function with no return value to void Modified the original int function that had no return value to a void type. --- tinytetris-commented.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinytetris-commented.cpp b/tinytetris-commented.cpp index f151188..c8d6d3c 100644 --- a/tinytetris-commented.cpp +++ b/tinytetris-commented.cpp @@ -50,7 +50,7 @@ void set_piece(int x, int y, int r, int v) { } // move a piece from old (p*) coords to new -int update_piece() { +void update_piece() { set_piece(px, py, pr, 0); set_piece(px = x, py = y, pr = r, p + 1); }