Rev 20 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 20 | Rev 21 | ||
---|---|---|---|
Line 347... | Line 347... | ||
347 | 347 | ||
348 | if (gNet_mode) { |
348 | if (gNet_mode) { |
349 | DoNetScores(); |
349 | DoNetScores(); |
350 | } |
350 | } |
351 | if (gQueued_headup_count && PDGetTotalTime() - gLast_centre_headup >= 1000) { |
351 | if (gQueued_headup_count && PDGetTotalTime() - gLast_centre_headup >= 1000) { |
352 | NewTextHeadupSlot( |
352 | NewTextHeadupSlot(eHeadupSlot_misc, gQueued_headups[0].flash_rate, |
353 | gQueued_headups[0].lifetime, |
353 | gQueued_headups[0].lifetime, |
354 | gQueued_headups[0].font_index, |
354 | gQueued_headups[0].font_index, |
355 | gQueued_headups[0].text); |
355 | gQueued_headups[0].text); |
356 | KillOldestQueuedHeadup(); |
356 | KillOldestQueuedHeadup(); |
357 | } |
357 | } |
Line 1410... | Line 1410... | ||
1410 | gProgram_state.credits_lost -= original_amount; |
1410 | gProgram_state.credits_lost -= original_amount; |
1411 | } else { |
1411 | } else { |
1412 | sprintf(s, "%s%s %d %s", GetMiscString(kMiscString_Lost), pPrefix_text, -pAmount, GetMiscString(kMiscString_Credits)); |
1412 | sprintf(s, "%s%s %d %s", GetMiscString(kMiscString_Lost), pPrefix_text, -pAmount, GetMiscString(kMiscString_Credits)); |
1413 | gProgram_state.credits_lost -= original_amount; |
1413 | gProgram_state.credits_lost -= original_amount; |
1414 | } |
1414 | } |
1415 | gLast_credit_headup__displays = NewTextHeadupSlot( |
1415 | gLast_credit_headup__displays = NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -4, s); |
1416 | gLast_earn_time = the_time; |
1416 | gLast_earn_time = the_time; |
1417 | } |
1417 | } |
1418 | 1418 | ||
1419 | // IDA: void __usercall EarnCredits(int pAmount@<EAX>) |
1419 | // IDA: void __usercall EarnCredits(int pAmount@<EAX>) |
1420 | void EarnCredits(int pAmount) { |
1420 | void EarnCredits(int pAmount) { |
Line 1463... | Line 1463... | ||
1463 | } |
1463 | } |
1464 | gLast_time_credit_amount = pTime; |
1464 | gLast_time_credit_amount = pTime; |
1465 | gTimer += original_amount * 1000; |
1465 | gTimer += original_amount * 1000; |
1466 | s[0] = '+'; |
1466 | s[0] = '+'; |
1467 | TimerString(1000 * pTime, &s[1], 0, 0); |
1467 | TimerString(1000 * pTime, &s[1], 0, 0); |
1468 | gLast_time_credit_headup = NewTextHeadupSlot( |
1468 | gLast_time_credit_headup = NewTextHeadupSlot(eHeadupSlot_time_award, 0, 2000, -2, s); |
1469 | gLast_time_earn_time = the_time; |
1469 | gLast_time_earn_time = the_time; |
1470 | } |
1470 | } |
1471 | 1471 | ||
1472 | // IDA: void __usercall DrawRectangle(br_pixelmap *pPixelmap@<EAX>, int pLeft@<EDX>, int pTop@<EBX>, int pRight@<ECX>, int pBottom, int pColour) |
1472 | // IDA: void __usercall DrawRectangle(br_pixelmap *pPixelmap@<EAX>, int pLeft@<EDX>, int pTop@<EBX>, int pRight@<ECX>, int pBottom, int pColour) |
1473 | void DrawRectangle(br_pixelmap* pPixelmap, int pLeft, int pTop, int pRight, int pBottom, int pColour) { |
1473 | void DrawRectangle(br_pixelmap* pPixelmap, int pLeft, int pTop, int pRight, int pBottom, int pColour) { |