Skip to content

Commit 1e06331

Browse files
committed
Fix AllowBuilderHoldFire argument types
Currently breaks: LLS: LuaLS/lua-language-server#3104 Docs: CppCXY/emmylua-analyzer-rust#129
1 parent 08adbca commit 1e06331

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

rts/Lua/LuaHandleSynced.cpp

+10-9
Original file line numberDiff line numberDiff line change
@@ -1237,15 +1237,16 @@ bool CSyncedLuaHandle::AllowDirectUnitControl(int playerID, const CUnit* unit)
12371237
*
12381238
* @param unitID integer
12391239
* @param unitDefID integer
1240-
* @param action number one of following:
1241-
*
1242-
* -1 Build
1243-
* CMD.REPAIR Repair
1244-
* CMD.RECLAIM Reclaim
1245-
* CMD.RESTORE Restore
1246-
* CMD.RESURRECT Resurrect
1247-
* CMD.CAPTURE Capture
1248-
*
1240+
* @param action -1|CMD
1241+
*
1242+
* One of the following:
1243+
* - `-1` build,
1244+
* - `CMD.REPAIR` repair,
1245+
* - `CMD.RECLAIM` reclaim,
1246+
* - `CMD.RESTORE` restore,
1247+
* - `CMD.RESURRECT` resurrect, or
1248+
* - `CMD.CAPTURE` capture.
1249+
*
12491250
* @return boolean actionAllowed
12501251
*/
12511252
bool CSyncedLuaHandle::AllowBuilderHoldFire(const CUnit* unit, int action)

0 commit comments

Comments
 (0)