Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tinytetris-commented.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down