commit - 342b37630bbc1a971c7c72a68df341f710c771fb
commit + 706510b089ccb2fb18b5b98c928914043f6a7c5a
blob - 414f02270120ef183f7b678f1d56af44735f2afe
blob + 603a58069bf2e97bd5ca1d52f0d44e0ed7fc2510
--- FICS/gameproc.c
+++ FICS/gameproc.c
return COM_OK;
}
-PUBLIC int com_unpause(int p, param_list param)
+PUBLIC int
+com_unpause(int p, param_list param)
{
- int now;
- int g;
+ int g;
+ int now;
- ASSERT(param[0].type == TYPE_NULL);
- if (!pIsPlaying(p)) {
- return COM_OK;
- }
- g = parray[p].game;
- if (!garray[g].clockStopped) {
- pprintf(p, "Game is not paused.\n");
- return COM_OK;
- }
- garray[g].clockStopped = 0;
- now = tenth_secs();
- if (garray[g].numHalfMoves == 0)
- garray[g].timeOfStart = now;
- garray[g].lastMoveTime = now;
- garray[g].lastDecTime = now;
- send_boards(g);
- pprintf(p, "Game clock resumed.\n");
- pprintf_prompt(parray[p].opponent, "\nGame clock resumed.\n");
- return COM_OK;
+ ASSERT(param[0].type == TYPE_NULL);
+
+ if (!pIsPlaying(p))
+ return COM_OK;
+
+ g = parray[p].game;
+
+ if (!garray[g].clockStopped) {
+ pprintf(p, "Game is not paused.\n");
+ return COM_OK;
+ }
+
+ garray[g].clockStopped = 0;
+ now = tenth_secs();
+
+ if (garray[g].numHalfMoves == 0)
+ garray[g].timeOfStart = now;
+
+ garray[g].lastMoveTime = now;
+ garray[g].lastDecTime = now;
+
+ send_boards(g);
+
+ pprintf(p, "Game clock resumed.\n");
+ pprintf_prompt(parray[p].opponent, "\nGame clock resumed.\n");
+
+ return COM_OK;
}
PUBLIC int