@@ -22,7 +22,7 @@ namespace Jazz2::Actors::Collectibles
2222 {
2323 async_await CollectibleBase::OnActivatedAsync (details);
2424
25- int length = (details.Params [0 ] > 0 ? details.Params [0 ] : 8 );
25+ std:: int32_t length = (details.Params [0 ] > 0 ? details.Params [0 ] : 8 );
2626 _speed = (details.Params [1 ] > 0 ? details.Params [1 ] : 8 ) * 0 .00625f ;
2727 _untouched = false ;
2828
@@ -32,7 +32,7 @@ namespace Jazz2::Actors::Collectibles
3232
3333 auto & resolver = ContentResolver::Get ();
3434 if (!resolver.IsHeadless ()) {
35- for (int i = 0 ; i < length; i++) {
35+ for (std:: int32_t i = 0 ; i < length; i++) {
3636 ChainPiece& piece = _pieces.emplace_back ();
3737 piece.Scale = 0 .8f ;
3838 piece.Command = std::make_unique<RenderCommand>(RenderCommand::Type::Sprite);
@@ -98,12 +98,12 @@ namespace Jazz2::Actors::Collectibles
9898 if (res != nullptr && res->Base ->TextureDiffuse != nullptr ) {
9999 Vector2i texSize = res->Base ->TextureDiffuse ->size ();
100100
101- for (int i = 0 ; i < _pieces.size (); i++) {
101+ for (std:: int32_t i = 0 ; i < _pieces.size (); i++) {
102102 auto command = _pieces[i].Command .get ();
103103
104- int curAnimFrame = res->FrameOffset + (i % res->FrameCount );
105- int col = curAnimFrame % res->Base ->FrameConfiguration .X ;
106- int row = curAnimFrame / res->Base ->FrameConfiguration .X ;
104+ std:: int32_t curAnimFrame = res->FrameOffset + (i % res->FrameCount );
105+ std:: int32_t col = curAnimFrame % res->Base ->FrameConfiguration .X ;
106+ std:: int32_t row = curAnimFrame / res->Base ->FrameConfiguration .X ;
107107 float texScaleX = (float (res->Base ->FrameDimensions .X ) / float (texSize.X ));
108108 float texBiasX = (float (res->Base ->FrameDimensions .X * col) / float (texSize.X ));
109109 float texScaleY = (float (res->Base ->FrameDimensions .Y ) / float (texSize.Y ));
0 commit comments