Lines 294-299
Link Here
|
294 |
|
294 |
|
295 |
//========================================================================== |
295 |
//========================================================================== |
296 |
// |
296 |
// |
|
|
297 |
// VThinker::BroadcastPrint |
298 |
// |
299 |
//========================================================================== |
300 |
|
301 |
void VThinker::BroadcastPrint(const char *s) |
302 |
{ |
303 |
guard(VThinker::BroadcastPrint); |
304 |
for (int i = 0; i < svs.max_clients; i++) |
305 |
if (Level->Game->Players[i]) |
306 |
Level->Game->Players[i]->eventClientPrint(s); |
307 |
unguard; |
308 |
} |
309 |
|
310 |
//========================================================================== |
311 |
// |
297 |
// VThinker::BroadcastPrintf |
312 |
// VThinker::BroadcastPrintf |
298 |
// |
313 |
// |
299 |
//========================================================================== |
314 |
//========================================================================== |
Lines 308-316
Link Here
|
308 |
vsprintf(buf, s, v); |
323 |
vsprintf(buf, s, v); |
309 |
va_end(v); |
324 |
va_end(v); |
310 |
|
325 |
|
|
|
326 |
BroadcastPrint(buf); |
327 |
unguard; |
328 |
} |
329 |
|
330 |
//========================================================================== |
331 |
// |
332 |
// VThinker::BroadcastCentrePrint |
333 |
// |
334 |
//========================================================================== |
335 |
|
336 |
void VThinker::BroadcastCentrePrint(const char *s) |
337 |
{ |
338 |
guard(VThinker::BroadcastCentrePrint); |
311 |
for (int i = 0; i < svs.max_clients; i++) |
339 |
for (int i = 0; i < svs.max_clients; i++) |
312 |
if (Level->Game->Players[i]) |
340 |
if (Level->Game->Players[i]) |
313 |
Level->Game->Players[i]->eventClientPrint(buf); |
341 |
Level->Game->Players[i]->eventClientCentrePrint(s); |
314 |
unguard; |
342 |
unguard; |
315 |
} |
343 |
} |
316 |
|
344 |
|
Lines 330-338
Link Here
|
330 |
vsprintf(buf, s, v); |
358 |
vsprintf(buf, s, v); |
331 |
va_end(v); |
359 |
va_end(v); |
332 |
|
360 |
|
333 |
for (int i = 0; i < svs.max_clients; i++) |
361 |
BroadcastCentrePrint(buf); |
334 |
if (Level->Game->Players[i]) |
|
|
335 |
Level->Game->Players[i]->eventClientCentrePrint(buf); |
336 |
unguard; |
362 |
unguard; |
337 |
} |
363 |
} |
338 |
|
364 |
|
Lines 444-450
Link Here
|
444 |
{ |
470 |
{ |
445 |
VStr Msg = PF_FormatString(); |
471 |
VStr Msg = PF_FormatString(); |
446 |
P_GET_SELF; |
472 |
P_GET_SELF; |
447 |
Self->BroadcastPrintf(*Msg); |
473 |
Self->BroadcastPrint(*Msg); |
448 |
} |
474 |
} |
449 |
|
475 |
|
450 |
IMPLEMENT_FUNCTION(VThinker, AllocDlight) |
476 |
IMPLEMENT_FUNCTION(VThinker, AllocDlight) |