This commit is contained in:
aozhiwei 2022-12-27 08:17:42 +08:00
parent 73cf8d174b
commit 6607042138
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ namespace mt
float PveGemini::GetHpMul(int num) const
{
if (num > 0 && num <= hp_muls.size()) {
if (num > 0 && num <= (int)hp_muls.size()) {
return hp_muls[num - 1];
}
#ifdef DEBUG

View File

@ -42,11 +42,11 @@ namespace mt
_waves.resize(_mode_time.size());
for (auto& content : *mt::PveGeminiContent::GetContentsByMode(id())) {
if (content->round() <= 0 ||
content->round() > _mode_time.size()) {
content->round() > (int)_mode_time.size()) {
abort();
}
_waves[content->round() - 1].push_back(content);
if (content->round() >= _waves.size()) {
if (content->round() >= (int)_waves.size()) {
if (content->_enemys.size() != 1) {
abort();
}
@ -103,7 +103,7 @@ namespace mt
int PveGeminiMode::CalcStar(int score) const
{
int star = 0;
for (int i = 0; i < _score_reward.size(); ++i) {
for (size_t i = 0; i < _score_reward.size(); ++i) {
if (score >= _score_reward[i]) {
star = i + 1;
} else {