wwww
Révision | c60a37b1fcd07f11b76d699e20c5d203e6636bd0 (tree) |
---|---|
l'heure | 2016-05-07 02:11:07 |
Auteur | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
ww
@@ -155,7 +155,6 @@ void modexEnter(sword vq, boolean cmem, global_game_variables_t *gv) | ||
155 | 155 | //TODO MAKE FLEXIBLE~ |
156 | 156 | // gv->video.page[0].tilemidposscreenx = gv->video.page[0].tilesw; |
157 | 157 | // gv->video.page[0].tilemidposscreeny = (gv->video.page[0].tilesh/2)+1; |
158 | - gv->video.num_of_pages=0; | |
159 | 158 | } |
160 | 159 | |
161 | 160 | void |
@@ -249,6 +248,7 @@ void modexCalcVmemRemain(video_t *video) | ||
249 | 248 | void modexHiganbanaPageSetup(video_t *video) |
250 | 249 | { |
251 | 250 | video->vmem_remain=262144L; |
251 | + video->num_of_pages=0; | |
252 | 252 | (video->page[0]) = modexDefaultPage(&(video->page[0])); video->num_of_pages++; |
253 | 253 | //video->page[0].width += (TILEWHD); video->page[0].height += (TILEWHD); |
254 | 254 | (video->page[1]) = modexNextPage(&(video->page[0])); video->num_of_pages++; |
@@ -72,12 +72,12 @@ typedef struct { | ||
72 | 72 | word dy; /* row we are viewing on the virtual screen */ |
73 | 73 | word sw; /* screen width */ |
74 | 74 | word sh; /* screen heigth */ |
75 | - word tilesw; /* screen width in tiles */ | |
76 | - word tilesh; /* screen height in tiles */ | |
75 | + word tw; /* screen width in tiles */ | |
76 | + word th; /* screen height in tiles */ | |
77 | 77 | word width; /* virtual width of the page */ |
78 | 78 | word height; /* virtual height of the page */ |
79 | - word tw; | |
80 | - word th; | |
79 | + word tilesw; /* virtual screen width in tiles */ | |
80 | + word tilesh; /* virtual screen height in tiles */ | |
81 | 81 | sword tilemidposscreenx; /* middle tile position */ |
82 | 82 | sword tilemidposscreeny; /* middle tile position */ |
83 | 83 | sword tileplayerposscreenx; /* player position on screen */ |