mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-24 14:54:52 +01:00
Fixes II
This commit is contained in:
parent
ef0b970490
commit
1c5556dbd9
|
@ -851,7 +851,7 @@ static void ComputerOn(void)
|
|||
_ppenPlayer->GetStats(_strStatsDetails, CST_DETAIL, _ctTextCharsPerRow);
|
||||
|
||||
// if end of level
|
||||
if (_ppenPlayer!=NULL && _ppenPlayer->m_bEndOfLevel || _pNetwork->IsGameFinished()) {
|
||||
if (_ppenPlayer->m_bEndOfLevel || _pNetwork->IsGameFinished()) {
|
||||
// select statistics
|
||||
_cmtWantedType = CMT_STATISTICS;
|
||||
// if not end of level
|
||||
|
|
|
@ -413,13 +413,13 @@ void ExportMesh_modeler(int iFaceForward) {
|
|||
char fnmOut[256];
|
||||
char *strFileName;
|
||||
|
||||
_state = _meshEditOperations->state;
|
||||
|
||||
if (_meshEditOperations == NULL) {
|
||||
_msg->error("Error!","Error _meshEditOperations is NULL!");
|
||||
_msg->error("Error!", "Error _meshEditOperations is NULL!");
|
||||
return;
|
||||
}
|
||||
|
||||
_state = _meshEditOperations->state;
|
||||
|
||||
_ctPntIDs = _meshEditOperations->pointCount(_state,OPLYR_FG,EDCOUNT_ALL);
|
||||
_ctPolIDs = _meshEditOperations->polyCount(_state,OPLYR_FG,EDCOUNT_ALL);
|
||||
|
||||
|
@ -438,6 +438,7 @@ void ExportMesh_modeler(int iFaceForward) {
|
|||
_fpOutput = fopen(fnmOut, "w");
|
||||
if (_fpOutput==NULL) {
|
||||
msgbox_modeler(_xpanf, "Can't open file!");
|
||||
return;
|
||||
}
|
||||
|
||||
// write the mesh header
|
||||
|
|
|
@ -135,8 +135,8 @@ void CToolTipWnd::OnPaint()
|
|||
dc.SetTextColor( colInk);
|
||||
|
||||
CDC *pDC = GetDC();
|
||||
if (pDC == NULL) return;
|
||||
pDC->SelectObject( &theApp.m_FixedFont);
|
||||
if( pDC == NULL) return;
|
||||
|
||||
INDEX ctLines = GetLinesCount();
|
||||
for(INDEX iLine = 0; iLine<ctLines; iLine++)
|
||||
|
|
|
@ -9030,9 +9030,10 @@ void CWorldEditorView::OnPreviousMipBrush()
|
|||
{
|
||||
CMainFrame* pMainFrame = STATIC_DOWNCAST(CMainFrame, AfxGetMainWnd());
|
||||
CEntity *penBrush = pMainFrame->m_CSGDesitnationCombo.GetSelectedBrushEntity();
|
||||
CBrush3D &brBrush = *penBrush->en_pbrBrush;
|
||||
|
||||
if (penBrush==NULL) return;
|
||||
if (penBrush == NULL) return;
|
||||
|
||||
CBrush3D &brBrush = *penBrush->en_pbrBrush;
|
||||
|
||||
// remember current time as time when last mip brushing option has been used
|
||||
_fLastMipBrushingOptionUsed = _pTimer->GetRealTimeTick();
|
||||
|
|
Loading…
Reference in New Issue
Block a user