ILLUSIONS: Fix MSVC warnings
- Fix warnings about conversion between float and double - Initialize potentially uninitialized variables
This commit is contained in:
parent
5724a1f385
commit
ea39214f7a
2 changed files with 4 additions and 3 deletions
|
@ -241,16 +241,16 @@ void BbdouBubble::calcBubbleTrail(Common::Point &sourcePt, Common::Point &destPt
|
||||||
|
|
||||||
if (!swapY) {
|
if (!swapY) {
|
||||||
if (destPt.y < sourcePt.y) {
|
if (destPt.y < sourcePt.y) {
|
||||||
currentAngle = M_PI * 0.5;
|
currentAngle = (float)M_PI * 0.5F;
|
||||||
} else {
|
} else {
|
||||||
currentAngle = M_PI * 1.5;
|
currentAngle = (float)M_PI * 1.5F;
|
||||||
partAngle = -partAngle;
|
partAngle = -partAngle;
|
||||||
}
|
}
|
||||||
if (destPt.x < sourcePt.x)
|
if (destPt.x < sourcePt.x)
|
||||||
partAngle = -partAngle;
|
partAngle = -partAngle;
|
||||||
} else {
|
} else {
|
||||||
if (destPt.x <= sourcePt.x) {
|
if (destPt.x <= sourcePt.x) {
|
||||||
currentAngle = M_PI;
|
currentAngle = (float)M_PI;
|
||||||
} else {
|
} else {
|
||||||
currentAngle = 0.0;
|
currentAngle = 0.0;
|
||||||
partAngle = -partAngle;
|
partAngle = -partAngle;
|
||||||
|
|
|
@ -306,6 +306,7 @@ void BbdouInventory::cause0x1B0001(TriggerFunction *triggerFunction, uint32 call
|
||||||
|
|
||||||
foundSceneId = _activeInventorySceneId;
|
foundSceneId = _activeInventorySceneId;
|
||||||
foundVerbId = triggerFunction->_verbId;
|
foundVerbId = triggerFunction->_verbId;
|
||||||
|
foundObjectId = 0;
|
||||||
foundObjectId2 = 0;
|
foundObjectId2 = 0;
|
||||||
|
|
||||||
if (triggerFunction->_verbId == 0x1B0008) {
|
if (triggerFunction->_verbId == 0x1B0008) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue