git: 9front

Download patch

ref: a9c482d181efd2771b114a95595390a3f91c4399
parent: 5c464cbb6f67201ed8d44a0081b4cd3a475a9879
author: cinap_lenrek <cinap_lenrek@localhost>
date: Fri May 27 11:55:56 EDT 2011

games/doom: fix the french problem, remove debug prints

--- a/sys/src/games/doom/hu_stuff.c
+++ b/sys/src/games/doom/hu_stuff.c
@@ -396,7 +396,7 @@
     int		j;
     char	buffer[9];
 
-    if (french)
+    if (language == french)
 	shiftxform = french_shiftxform;
     else
 	shiftxform = english_shiftxform;
@@ -727,7 +727,7 @@
 	}
 	else
 	{
-	    if (french)
+	    if (language == french)
 		c = ForeignTranslation(c);
 	    if (shiftdown || (c >= 'a' && c <= 'z'))
 		c = shiftxform[c];
--- a/sys/src/games/doom/i_sound.c
+++ b/sys/src/games/doom/i_sound.c
@@ -450,7 +450,7 @@
 void I_StopSound(int handle)
 {
 	USED(handle);
-	printf("PORTME i_sound.c I_StopSound\n");
+//	printf("PORTME i_sound.c I_StopSound\n");
 }
 
 int I_SoundIsPlaying(int handle)
@@ -471,36 +471,36 @@
 
 void I_InitMusic(void)
 {
-	printf("PORTME i_sound.c I_InitMusic\n");
+//	printf("PORTME i_sound.c I_InitMusic\n");
 }
 
 void I_ShutdownMusic(void)
 {
-	printf("PORTME i_sound.c I_ShutdownMusic\n");
+//	printf("PORTME i_sound.c I_ShutdownMusic\n");
 }
 
 void I_SetMusicVolume(int volume)
 {
 	USED(volume);
-	printf("PORTME i_sound.c I_SetMusicVolume\n");
+//	printf("PORTME i_sound.c I_SetMusicVolume\n");
 }
 
 void I_PauseSong(int handle)
 {
 	USED(handle);
-	printf("PORTME i_sound.c I_PauseSong\n");
+//	printf("PORTME i_sound.c I_PauseSong\n");
 }
 
 void I_ResumeSong(int handle)
 {
 	USED(handle);
-	printf("PORTME i_sound.c I_ResumeSong\n");
+//	printf("PORTME i_sound.c I_ResumeSong\n");
 }
 
 int I_RegisterSong(void *data)
 {
 	USED(data);
-	printf("PORTME i_sound.c I_RegisterSong\n");
+//	printf("PORTME i_sound.c I_RegisterSong\n");
 	return 0;
 }
 
@@ -507,17 +507,17 @@
 void I_PlaySong(int handle, int looping)
 {
 	USED(handle, looping);
-	printf("PORTME i_sound.c I_PlaySong\n");
+//	printf("PORTME i_sound.c I_PlaySong\n");
 }
 
 void I_StopSong(int handle)
 {
 	USED(handle);
-	printf("PORTME i_sound.c I_StopSong\n");
+//	printf("PORTME i_sound.c I_StopSong\n");
 }
 
 void I_UnRegisterSong(int handle)
 {
 	USED(handle);
-	printf("PORTME i_sound.c I_UnregisterSong\n");
+//	printf("PORTME i_sound.c I_UnregisterSong\n");
 }
--- a/sys/src/games/doom/wi_stuff.c
+++ b/sys/src/games/doom/wi_stuff.c
@@ -1646,7 +1646,7 @@
     sp_secret = W_CacheLumpName("WISCRT2", PU_STATIC);
 
     // Yuck. 
-    if (french)
+    if (language == french)
     {
 	// "items"
 	if (netgame && !deathmatch)
--