X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=engineoutput.c;h=07524284c4d401d2cc6ff596d42d9e728bc3d2c4;hb=003ab519c36430f6df51e0e6e2aa528476894161;hp=94f2a8791ba6596d328fcc6627a11f3c1c0734a3;hpb=fb7eb56b7f69038426c5276f77e04ad1b0f8fcb7;p=xboard.git diff --git a/engineoutput.c b/engineoutput.c index 94f2a87..0752428 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -124,7 +124,7 @@ MakeEngineOutputTitle () // back end, due to front-end wrapper for SetWindowText, and new SetIcon arguments void -SetEngineState (int which, int state, char * state_data) +SetEngineState (int which, enum ENGINE_STATE state, char * state_data) { int x_which = 1 - which; @@ -238,7 +238,7 @@ SetProgramStats (FrontEndProgramStats * stats) // now directly called by back-en } } - if(ParseOneMove(ed.pv, currentMove, &moveType, &ff, &rf, &ft, &rt, &pc)) + if(ed.pv && ed.pv[0] && ParseOneMove(ed.pv, currentMove, &moveType, &ff, &rf, &ft, &rt, &pc)) ed.moveKey = (ff<<24 | rf << 16 | ft << 8 | rt) ^ pc*87161; else ed.moveKey = ed.nodes; // kludge to get unique key unlikely to match any move @@ -503,10 +503,10 @@ UpdateControls (EngineOutputData *ed) unsigned long nps_100 = ed->nodes / ed->time; if( nps_100 < 100000 ) { - snprintf( s_label, sizeof(s_label)/sizeof(s_label[0]), "NPS: %lu", nps_100 * 100 ); + snprintf( s_label, sizeof(s_label)/sizeof(s_label[0]), "%s: %lu", _("NPS"), nps_100 * 100 ); } else { - snprintf( s_label, sizeof(s_label)/sizeof(s_label[0]), "NPS: %.1fk", nps_100 / 10.0 ); + snprintf( s_label, sizeof(s_label)/sizeof(s_label[0]), "%s: %.1fk", _("NPS"), nps_100 / 10.0 ); } }