This commit is contained in:
parent
b56cd688ae
commit
a9a9af96f5
8 changed files with 54 additions and 23 deletions
|
@ -117,7 +117,7 @@ CAnimTex *ThisTex=AnimTexList;
|
|||
RECT Rect;
|
||||
int Count,CountComp;
|
||||
int H,W;
|
||||
int Time = GameState::getTimeSinceLast();
|
||||
int Time = GameState::getFramesSinceLast();
|
||||
|
||||
while (ThisTex)
|
||||
{
|
||||
|
@ -141,7 +141,7 @@ int Time = GameState::getTimeSinceLast();
|
|||
Rect.h=CountComp;
|
||||
LoadImage(&Rect,ThisTex->TexData);
|
||||
}
|
||||
ThisTex->Count+=(ThisTex->Speed * Time)>> 12;
|
||||
ThisTex->Count+=(ThisTex->Speed * Time);
|
||||
ThisTex->Count%=(ThisTex->Rect.h<<2);
|
||||
ThisTex=ThisTex->NextTex;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue