修复战斗
This commit is contained in:
@@ -39,12 +39,12 @@ func (f *baseplayer) GetPlayerCaptureContext() *info.PlayerCaptureContext {
|
||||
return f.PlayerCaptureContext
|
||||
}
|
||||
|
||||
// 计算整数的二进制1的个数(Integer.bitCount)
|
||||
func bitsCount(n int) int {
|
||||
count := 0
|
||||
for n > 0 {
|
||||
count += n & 1
|
||||
n >>= 1
|
||||
}
|
||||
return count
|
||||
}
|
||||
// // 计算整数的二进制1的个数(Integer.bitCount)
|
||||
// func bitsCount(n int) int {
|
||||
// count := 0
|
||||
// for n > 0 {
|
||||
// count += n & 1
|
||||
// n >>= 1
|
||||
// }
|
||||
// return count
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user