Stefan Schuermans commited on 2019-07-14 17:51:57
Showing 1 changed files, with 4 additions and 0 deletions.
| ... | ... |
@@ -144,6 +144,7 @@ void Tetris::opConnRecvKey(OpConn *pConn, char key) |
| 144 | 144 |
wipeStone(m_stone, m_rot, m_posY, m_posX); |
| 145 | 145 |
m_posX -= 1; |
| 146 | 146 |
drawStone(m_stone, m_rot, m_posY, m_posX); // TODO: active color |
| 147 |
+ sendFrame(); |
|
| 147 | 148 |
} |
| 148 | 149 |
return; |
| 149 | 150 |
} |
| ... | ... |
@@ -154,6 +155,7 @@ void Tetris::opConnRecvKey(OpConn *pConn, char key) |
| 154 | 155 |
wipeStone(m_stone, m_rot, m_posY, m_posX); |
| 155 | 156 |
m_posX += 1; |
| 156 | 157 |
drawStone(m_stone, m_rot, m_posY, m_posX); // TODO: active color |
| 158 |
+ sendFrame(); |
|
| 157 | 159 |
} |
| 158 | 160 |
return; |
| 159 | 161 |
} |
| ... | ... |
@@ -168,6 +170,7 @@ void Tetris::opConnRecvKey(OpConn *pConn, char key) |
| 168 | 170 |
wipeStone(m_stone, m_rot, m_posY, m_posX); |
| 169 | 171 |
m_rot = new_rot; |
| 170 | 172 |
drawStone(m_stone, m_rot, m_posY, m_posX); // TODO: active color |
| 173 |
+ sendFrame(); |
|
| 171 | 174 |
} |
| 172 | 175 |
return; |
| 173 | 176 |
} |
| ... | ... |
@@ -182,6 +185,7 @@ void Tetris::opConnRecvKey(OpConn *pConn, char key) |
| 182 | 185 |
wipeStone(m_stone, m_rot, m_posY, m_posX); |
| 183 | 186 |
m_rot = new_rot; |
| 184 | 187 |
drawStone(m_stone, m_rot, m_posY, m_posX); // TODO: active color |
| 188 |
+ sendFrame(); |
|
| 185 | 189 |
} |
| 186 | 190 |
return; |
| 187 | 191 |
} |
| 188 | 192 |