From 7551dbb9e348a043de7272a8d0c4dd7da7c49c26 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sat, 28 Sep 2019 23:26:24 +0800 Subject: [PATCH] =?UTF-8?q?Game::update()=20=E5=8F=96=E6=B6=88=20inline=20?= =?UTF-8?q?=E4=BB=A5=E8=A7=A3=E5=86=B3=20gcc-7.3=20=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/game/position.cpp | 2 +- src/game/position.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/position.cpp b/src/game/position.cpp index 31298d8f..9abfe9e5 100644 --- a/src/game/position.cpp +++ b/src/game/position.cpp @@ -770,7 +770,7 @@ bool Game::command(int m) return false; } -inline int Game::update() +int Game::update() { int ret = -1; int timePoint = -1; diff --git a/src/game/position.h b/src/game/position.h index 6ccf1ea8..2e3451a6 100644 --- a/src/game/position.h +++ b/src/game/position.h @@ -222,7 +222,7 @@ public: bool command(const char *cmd); // 更新时间和状态,用内联函数以提高效率 - inline int update(); + int update(); // 是否分出胜负 bool win();