@@ -122,31 +122,31 @@ void CPortals::Load(){
122122 in = fopen ( fn, " rt" );
123123
124124 if ( in == NULL ) {
125- Sys_Printf ( " ERROR - could not open file.\n " );
125+ Sys_FPrintf ( SYS_ERR, " ERROR - could not open file.\n " );
126126
127127 return ;
128128 }
129129
130130 if ( !fgets ( buf, LINE_BUF, in ) ) {
131131 fclose ( in );
132132
133- Sys_Printf ( " ERROR - File ended prematurely.\n " );
133+ Sys_FPrintf ( SYS_ERR, " ERROR - File ended prematurely.\n " );
134134
135135 return ;
136136 }
137137
138138 if ( strncmp ( " PRT1" , buf, 4 ) != 0 ) {
139139 fclose ( in );
140140
141- Sys_Printf ( " ERROR - File header indicates wrong file type (should be \" PRT1\" ).\n " );
141+ Sys_FPrintf ( SYS_ERR, " ERROR - File header indicates wrong file type (should be \" PRT1\" ).\n " );
142142
143143 return ;
144144 }
145145
146146 if ( !fgets ( buf, LINE_BUF, in ) ) {
147147 fclose ( in );
148148
149- Sys_Printf ( " ERROR - File ended prematurely.\n " );
149+ Sys_FPrintf ( SYS_ERR, " ERROR - File ended prematurely.\n " );
150150
151151 return ;
152152 }
@@ -158,7 +158,7 @@ void CPortals::Load(){
158158
159159 node_count = 0 ;
160160
161- Sys_Printf ( " ERROR - Extreme number of nodes, aborting.\n " );
161+ Sys_FPrintf ( SYS_ERR, " ERROR - Extreme number of nodes, aborting.\n " );
162162
163163 return ;
164164 }
@@ -168,7 +168,7 @@ void CPortals::Load(){
168168
169169 node_count = 0 ;
170170
171- Sys_Printf ( " ERROR - File ended prematurely.\n " );
171+ Sys_FPrintf ( SYS_ERR, " ERROR - File ended prematurely.\n " );
172172
173173 return ;
174174 }
@@ -181,7 +181,7 @@ void CPortals::Load(){
181181
182182 node_count = 0 ;
183183
184- Sys_Printf ( " ERROR - File ended prematurely.\n " );
184+ Sys_FPrintf ( SYS_ERR, " ERROR - File ended prematurely.\n " );
185185
186186 return ;
187187 }
@@ -199,7 +199,7 @@ void CPortals::Load(){
199199
200200 node_count = 0 ;
201201
202- Sys_Printf ( " ERROR - File ended prematurely.\n " );
202+ Sys_FPrintf ( SYS_ERR, " ERROR - File ended prematurely.\n " );
203203
204204 return ;
205205 }
@@ -218,7 +218,7 @@ void CPortals::Load(){
218218
219219 node_count = 0 ;
220220
221- Sys_Printf ( " ERROR - File ended prematurely.\n " );
221+ Sys_FPrintf ( SYS_ERR, " ERROR - File ended prematurely.\n " );
222222
223223 return ;
224224 }
@@ -249,7 +249,7 @@ void CPortals::Load(){
249249
250250 Purge ();
251251
252- Sys_Printf ( " ERROR - Could not find information for portal number %d of %d.\n " , n + 1 , p_count );
252+ Sys_FPrintf ( SYS_ERR, " ERROR - Could not find information for portal number %d of %d.\n " , n + 1 , p_count );
253253
254254 return ;
255255 }
@@ -262,7 +262,7 @@ void CPortals::Load(){
262262
263263 Purge ();
264264
265- Sys_Printf ( " ERROR - Information for portal number %d of %d is not formatted correctly.\n " , n + 1 , p_count );
265+ Sys_FPrintf ( SYS_ERR, " ERROR - Information for portal number %d of %d is not formatted correctly.\n " , n + 1 , p_count );
266266
267267 return ;
268268 }
@@ -272,7 +272,7 @@ void CPortals::Load(){
272272
273273 Purge ();
274274
275- Sys_Printf ( " ERROR - Information for portal number %d of %d is not formatted correctly.\n " , n + 1 , p_count );
275+ Sys_FPrintf ( SYS_ERR, " ERROR - Information for portal number %d of %d is not formatted correctly.\n " , n + 1 , p_count );
276276
277277 return ;
278278 }
@@ -285,7 +285,7 @@ void CPortals::Load(){
285285
286286 Purge ();
287287
288- Sys_Printf ( " ERROR - Could not find information for portal number %d of %d.\n " , n + 1 , p_count );
288+ Sys_FPrintf ( SYS_ERR, " ERROR - Could not find information for portal number %d of %d.\n " , n + 1 , p_count );
289289
290290 return ;
291291 }
@@ -298,7 +298,7 @@ void CPortals::Load(){
298298
299299 Purge ();
300300
301- Sys_Printf ( " ERROR - Information for portal number %d of %d is not formatted correctly.\n " , n + 1 , p_count );
301+ Sys_FPrintf ( SYS_ERR, " ERROR - Information for portal number %d of %d is not formatted correctly.\n " , n + 1 , p_count );
302302
303303 return ;
304304 }
0 commit comments