silence implicit float->int conversion warnings
This commit is contained in:
parent
829c9c1242
commit
333c40e46a
@ -284,8 +284,8 @@ class KiriCacodemonPlushie : HDWeapon {
|
|||||||
A_StartSound("potion/chug");
|
A_StartSound("potion/chug");
|
||||||
invoker.owner.A_TakeInventory("SecondBlood", 1, TIF_NOTAKEINFINITE);
|
invoker.owner.A_TakeInventory("SecondBlood", 1, TIF_NOTAKEINFINITE);
|
||||||
invoker.setMonsterHealth(
|
invoker.setMonsterHealth(
|
||||||
invoker.getMonsterHealth() +
|
int(invoker.getMonsterHealth() +
|
||||||
invoker.getMonsterMaxHealth() * 0.25);
|
invoker.getMonsterMaxHealth() * 0.25));
|
||||||
|
|
||||||
// Throw out a spend blood bag.
|
// Throw out a spend blood bag.
|
||||||
A_SpawnItemEx(
|
A_SpawnItemEx(
|
||||||
@ -303,13 +303,14 @@ class KiriCacodemonPlushie : HDWeapon {
|
|||||||
HDBleedingWound hbl = HDBleedingWound.inflict(
|
HDBleedingWound hbl = HDBleedingWound.inflict(
|
||||||
invoker.owner, 2, 1, source : invoker.owner);
|
invoker.owner, 2, 1, source : invoker.owner);
|
||||||
|
|
||||||
HDPlayerPawn(invoker.owner).bloodloss += 0.1;
|
// FIXME this gets rounded down to 0
|
||||||
|
//HDPlayerPawn(invoker.owner).bloodloss += 0.1;
|
||||||
|
|
||||||
A_StartSound(invoker.owner.painsound);
|
A_StartSound(invoker.owner.painsound);
|
||||||
|
|
||||||
invoker.setMonsterHealth(
|
invoker.setMonsterHealth(
|
||||||
invoker.getMonsterHealth() +
|
int(invoker.getMonsterHealth() +
|
||||||
invoker.getMonsterMaxHealth() * 0.1);
|
invoker.getMonsterMaxHealth() * 0.1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,8 +248,8 @@ class SnekTechSprayer : HDWeapon
|
|||||||
}
|
}
|
||||||
|
|
||||||
int time = level.TotalTime;
|
int time = level.TotalTime;
|
||||||
int lastChargedTime = round(
|
int lastChargedTime = int(round(
|
||||||
float(pressure - KIRI_SPRAY_MAXPRESSURE) / float(KIRI_SPRAY_PRESSURE_DECAY_RATE) + time);
|
float(pressure - KIRI_SPRAY_MAXPRESSURE) / float(KIRI_SPRAY_PRESSURE_DECAY_RATE) + time));
|
||||||
|
|
||||||
weaponstatus[KIRI_SPRAY_WS_PRESSURE] = lastChargedTime;
|
weaponstatus[KIRI_SPRAY_WS_PRESSURE] = lastChargedTime;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user