mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-27 16:12:48 -04:00
z64game.h (#1250)
* z64game.h * grrrrr * fix missing stuff * Update include/z64game.h Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update include/z64game.h Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * review * global.h to the top * reiew * fix --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
This commit is contained in:
+3
-3
@@ -11,9 +11,9 @@ f32 gFramerateDivisorThird = 1.0f / 3.0f;
|
||||
|
||||
void Game_UpdateFramerateVariables(s32 divisor) {
|
||||
gFramerateDivisor = divisor;
|
||||
gFramerateDivisorF = (f32)divisor;
|
||||
gFramerateDivisorHalf = (f32)(divisor * 0.5f);
|
||||
gFramerateDivisorThird = (f32)(divisor / 3.0f);
|
||||
gFramerateDivisorF = divisor;
|
||||
gFramerateDivisorHalf = divisor / 2.0f;
|
||||
gFramerateDivisorThird = divisor / 3.0f;
|
||||
}
|
||||
|
||||
void Game_SetFramerateDivisor(GameState* gameState, s32 divisor) {
|
||||
|
||||
+4
-4
@@ -1,3 +1,4 @@
|
||||
#include "global.h"
|
||||
#include "z_prenmi.h"
|
||||
|
||||
void PreNMI_Stop(PreNMIState* this) {
|
||||
@@ -9,10 +10,9 @@ void PreNMI_Update(PreNMIState* this) {
|
||||
if (this->timer == 0) {
|
||||
ViConfig_UpdateVi(1);
|
||||
PreNMI_Stop(this);
|
||||
return;
|
||||
} else {
|
||||
this->timer--;
|
||||
}
|
||||
|
||||
this->timer--;
|
||||
}
|
||||
|
||||
void PreNMI_Draw(PreNMIState* this) {
|
||||
@@ -48,7 +48,7 @@ void PreNMI_Init(GameState* thisx) {
|
||||
this->state.main = PreNMI_Main;
|
||||
this->state.destroy = PreNMI_Destroy;
|
||||
this->timer = 30;
|
||||
this->unkA8 = 10;
|
||||
this->unk_A8 = 10;
|
||||
|
||||
Game_SetFramerateDivisor(&this->state, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user