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();