@@ -127,8 +127,7 @@ | ||
127 | 127 | |
128 | 128 | void PrintSceneDirections() |
129 | 129 | { |
130 | - location* locationPtr = &gLocations[gCurrentLocation]; | |
131 | - unsigned char* directions = locationPtr->directions; | |
130 | + unsigned char* directions = gLocations[gCurrentLocation].directions; | |
132 | 131 | int direction; |
133 | 132 | |
134 | 133 | gFlagDirections = 0; |
@@ -189,7 +188,6 @@ | ||
189 | 188 | |
190 | 189 | void PrintSceneObjects() |
191 | 190 | { |
192 | - int i; | |
193 | 191 | int itemCount = 0; |
194 | 192 | int item; |
195 | 193 |
@@ -203,25 +201,16 @@ | ||
203 | 201 | |
204 | 202 | // Print any item in the location |
205 | 203 | if (itemCount) |
206 | - { | |
207 | - char first=1; | |
204 | + { | |
205 | + const char* ptrMessage=gTextCanSee; | |
208 | 206 | char* ptrScreen=(char*)0xbb80+40*18; |
209 | 207 | for (item=0;item<e_ITEM_COUNT_;item++) |
210 | 208 | { |
211 | 209 | if (gItems[item].location == gCurrentLocation) |
212 | 210 | { |
213 | - if (first) | |
214 | - { | |
215 | - // The first item on the screen is shown a bit differently | |
216 | - sprintf(ptrScreen+1,"%c%s %s",3,gTextCanSee,gItems[item].description); // "I can see" | |
217 | - ptrScreen+=40; | |
218 | - first=0; | |
219 | - } | |
220 | - else | |
221 | - { | |
222 | - sprintf(ptrScreen+1,"%c%s",3,gItems[item].description); | |
223 | - ptrScreen+=40; | |
224 | - } | |
211 | + sprintf(ptrScreen+1,"%c%s%s",3,ptrMessage,gItems[item].description); // "I can see" | |
212 | + ptrMessage=""; | |
213 | + ptrScreen+=40; | |
225 | 214 | } |
226 | 215 | } |
227 | 216 | } |
@@ -232,11 +221,6 @@ | ||
232 | 221 | } |
233 | 222 | |
234 | 223 | |
235 | -void PrintScore() | |
236 | -{ | |
237 | - sprintf((char*)0xbb80+16*40+1,"%c%s%d%c",4,gTextScore,gScore,7); // "Score:" | |
238 | -} | |
239 | - | |
240 | 224 | WORDS ProcessPlayerNameAnswer() |
241 | 225 | { |
242 | 226 | // We accept anything, it's the player name so... |
@@ -297,16 +281,15 @@ | ||
297 | 281 | |
298 | 282 | void PrintSceneInformation() |
299 | 283 | { |
300 | - location* locationPtr = &gLocations[gCurrentLocation]; | |
301 | - int messageLength = 0; | |
302 | - | |
303 | 284 | // Print the description of the place at the top (centered) |
304 | - PrintTopDescription(locationPtr->description); | |
285 | + PrintTopDescription(gLocations[gCurrentLocation].description); | |
305 | 286 | |
287 | + // The redefined charcters to draw the bottom part of the directional arrows \v/ | |
306 | 288 | poke(0xbb80+16*40+16,9); // ALT charset |
307 | 289 | memcpy((char*)0xbb80+16*40+17,";<=>?@",6); |
308 | 290 | |
309 | - PrintScore(); | |
291 | + // Display the score | |
292 | + sprintf((char*)0xbb80+16*40+1,"%c%s%d%c",4,gTextScore,gScore,7); // "Score:" | |
310 | 293 | |
311 | 294 | PrintSceneDirections(); |
312 | 295 |
@@ -16,7 +16,7 @@ | ||
16 | 16 | #ifdef LANGUAGE_FR |
17 | 17 | _gTextAskInput .byt "Quels sont vos instructions ?",0 |
18 | 18 | _gTextNothingHere .byt "Il n'y a rien d'important ici",0 |
19 | -_gTextCanSee .byt "Je vois",0 | |
19 | +_gTextCanSee .byt "Je vois ",0 | |
20 | 20 | _gTextScore .byt "Score:",0 |
21 | 21 | _gTextHighScoreAskForName .byt "Nouveau top score ! Votre name SVP ?",0 |
22 | 22 | _gTextCarryInWhat .byt "Transporte dans quoi ?",0 |
@@ -41,7 +41,7 @@ | ||
41 | 41 | #else |
42 | 42 | _gTextAskInput .byt "What are you going to do now?",0 |
43 | 43 | _gTextNothingHere .byt "There is nothing of interest here",0 |
44 | -_gTextCanSee .byt "I can see",0 | |
44 | +_gTextCanSee .byt "I can see ",0 | |
45 | 45 | _gTextScore .byt "Score:",0 |
46 | 46 | _gTextHighScoreAskForName .byt "New highscore! Your name please?",0 |
47 | 47 | _gTextCarryInWhat .byt "Carry it in what?",0 |
@@ -851,9 +851,15 @@ | ||
851 | 851 | _gSceneActionReadHandWrittenNote |
852 | 852 | .byt COMMAND_FULLSCREEN_ITEM,LOADER_PICTURE_HANDWRITTEN_NOTE,"A hand written note",0 |
853 | 853 | WAIT(50*2) |
854 | +#ifdef LANGUAGE_FR | |
855 | + .byt COMMAND_INFO_MESSAGE,"Ca pourrait être utile...",0 | |
856 | + WAIT(50*2) | |
857 | + .byt COMMAND_INFO_MESSAGE,"...si je peux y accéder !",0 | |
858 | +#else | |
854 | 859 | .byt COMMAND_INFO_MESSAGE,"That could be useful...",0 |
855 | 860 | WAIT(50*2) |
856 | 861 | .byt COMMAND_INFO_MESSAGE,"...if I can access it!",0 |
862 | +#endif | |
857 | 863 | WAIT(50*2) |
858 | 864 | END |
859 | 865 |