sprite id
@@ -53,7 +53,6 @@ | ||
53 | 53 | * @param[in] nImageInformation //! |
54 | 54 | */ |
55 | 55 | int getImageHandle( int nSpriteType, int nSequenceIndex, int nImageInformationIndex = -1 ); |
56 | - | |
57 | 56 | public: |
58 | 57 | /** 即座にマップ切替をする準備。 |
59 | 58 | * これを実施後にchangeImmediately()を実行 |
@@ -428,6 +428,7 @@ | ||
428 | 428 | //int nWidth = 0; |
429 | 429 | //int nHeight = 0; |
430 | 430 | int nPerLine = 10; |
431 | + bool bIsCombined = nSeqType == HPL::SeqLoadType::COMBINED; | |
431 | 432 | |
432 | 433 | for( int i = 0; i < MAX_FRAMES; i ++ ) { |
433 | 434 |
@@ -497,7 +498,7 @@ | ||
497 | 498 | HPLImageInformation info = this->createImageInformation( |
498 | 499 | nIndex, atoi(vecFrames.at(i).c_str()), |
499 | 500 | rSrcRect ); |
500 | - if( nCombinedImageIndex >= 0 && nPerLine > 0 ) { | |
501 | + if (bIsCombined && nCombinedImageIndex >= 0 && nPerLine > 0) { | |
501 | 502 | rSrcRect.setLeftTop( i % nPerLine * rSrcRect.getWidth(), |
502 | 503 | i / nPerLine * rSrcRect.getHeight()); |
503 | 504 | } |