@@ -272,7 +272,8 @@ void BICommandList::Init()
272
272
sscanf (pAList->GetAttribute (" CommandNoteOffset" ), " %d,%d" , &m_NoteOffset.x , &m_NoteOffset.y );
273
273
274
274
// Setting values for arrows (up / down)
275
- if (attr = pAList->GetAttribute (" UDArrow_Texture" ))
275
+ attr = pAList->GetAttribute (" UDArrow_Texture" );
276
+ if (attr)
276
277
m_sUpDownArrowTexture = attr;
277
278
BIUtils::ReadRectFromAttr (pAList, " UDArrow_UV_Up" , m_frUpArrowUV, m_frUpArrowUV);
278
279
BIUtils::ReadRectFromAttr (pAList, " UDArrow_UV_Down" , m_frDownArrowUV, m_frDownArrowUV);
@@ -283,7 +284,8 @@ void BICommandList::Init()
283
284
BIUtils::ReadPosFromAttr (pAList, " UDArrow_Offset_Down" , m_pntDownArrowOffset.x , m_pntDownArrowOffset.y ,
284
285
m_pntDownArrowOffset.x , m_pntDownArrowOffset.y );
285
286
286
- if (attr = pAList->GetAttribute (" LRArrow_Texture" ))
287
+ attr = pAList->GetAttribute (" LRArrow_Texture" );
288
+ if (attr)
287
289
m_sLeftRightArrowTexture = attr;
288
290
BIUtils::ReadRectFromAttr (pAList, " LRArrow_UV_Left" , m_frLeftArrowUV, m_frLeftArrowUV);
289
291
BIUtils::ReadRectFromAttr (pAList, " LRArrow_UV_Right" , m_frRightArrowUV, m_frRightArrowUV);
@@ -295,15 +297,17 @@ void BICommandList::Init()
295
297
m_pntRightArrowOffset.x , m_pntRightArrowOffset.y );
296
298
297
299
// set values for the menu activity icon
298
- if (attr = pAList->GetAttribute (" ActiveIcon_Texture" ))
300
+ attr = pAList->GetAttribute (" ActiveIcon_Texture" );
301
+ if (attr)
299
302
m_sActiveIconTexture = attr;
300
303
BIUtils::ReadPosFromAttr (pAList, " ActiveIcon_Offset" , m_pntActiveIconOffset.x , m_pntActiveIconOffset.y ,
301
304
m_pntActiveIconOffset.x , m_pntActiveIconOffset.y );
302
305
BIUtils::ReadPosFromAttr (pAList, " ActiveIcon_Size" , m_pntActiveIconSize.x , m_pntActiveIconSize.y ,
303
306
m_pntActiveIconSize.x , m_pntActiveIconSize.y );
304
307
BIUtils::ReadRectFromAttr (pAList, " ActiveIcon_UV1" , m_frActiveIconUV1, m_frActiveIconUV1);
305
308
BIUtils::ReadRectFromAttr (pAList, " ActiveIcon_UV2" , m_frActiveIconUV2, m_frActiveIconUV2);
306
- if (attr = pAList->GetAttribute (" ActiveIcon_Note" ))
309
+ attr = pAList->GetAttribute (" ActiveIcon_Note" );
310
+ if (attr)
307
311
m_sActiveIconNote = attr;
308
312
}
309
313
0 commit comments