Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
gcc7 (Fedora 26) build fixes
  • Loading branch information
stransky committed Jun 30, 2017
1 parent fd5e9d0 commit 974e2e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/kofola/Menu.cpp
Expand Up @@ -282,7 +282,7 @@ void AnimationEvent(DWORD dwTime, AUDIO_DATA * p_ad)
char bAnim = 0;
DWORD e;

e = abs(dwLTime - dwTime);
e = abs((int)(dwLTime - dwTime));

for (i = 0; i < 32; i++)
if (anm[i].cmd) {
Expand Down
2 changes: 1 addition & 1 deletion src/kofola/Menu2.cpp
Expand Up @@ -232,7 +232,7 @@ void AnimationEvent2(HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime)
//priprava
//BitBltU(CompositDC,0,0,1024,768,NULL,0,0,WHITENESS);

e = abs(dwLTime - dwTime);
e = abs((int)(dwLTime - dwTime));
for (i = 0; i < 32; i++)
if (anm[i].cmd) {
if (anm[i].bStop) {
Expand Down
4 changes: 2 additions & 2 deletions src/kofola/animend_functions.cpp
Expand Up @@ -359,7 +359,7 @@ void anmend_Lift(size_ptr param, size_ptr param2, size_ptr p_param)
s = ap_Play_Sound(0,0,0, pos, p_itm->p_Object->Specific[0].Index, NULL, &ad);

if (s >= 0) {
for(i=0;i<(abs(param)-1);i++)
for(i=0;i<(abs((int)param)-1);i++)
adas_Queue_Sound(s, p_itm->p_Object->Specific[1].Index);

adas_Queue_Sound(s, p_itm->p_Object->Specific[2].Index);
Expand All @@ -371,7 +371,7 @@ void anmend_Lift(size_ptr param, size_ptr param2, size_ptr p_param)
if (s < 0)
return;

p_Level->LiftParticles[s].dwStop = abs(param) * 250;
p_Level->LiftParticles[s].dwStop = abs((int)param) * 250;
}
}

Expand Down

0 comments on commit 974e2e5

Please sign in to comment.