| 476 | } |
| 477 | |
| 478 | void masscompilercallback(char *str) { |
| 479 | MassScriptEditContent += str; |
| 480 | |
| 481 | MassScriptEdit->SetWindowText(MassScriptEditContent.GetBuffer(0)); |
| 482 | |
| 483 | int total_lines = MassScriptEdit->GetLineCount(); |
| 484 | int curr_index = MassScriptEdit->GetFirstVisibleLine(); |
| 485 | if ((total_lines - curr_index) > 16) { |
| 486 | // we need to scroll down a line |
| 487 | MassScriptEdit->LineScroll((total_lines - curr_index) - 16); |
| 488 | } |
| 489 | |
| 490 | Descent->defer(); |
| 491 | } |
| 492 | |
| 493 | bool CScriptMassCompile::Step3(char *filename, bool islevel) { |
| 494 | tCompilerInfo ci; |