1
This commit is contained in:
parent
73cf8d174b
commit
6607042138
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user