Merge branch 'zcaliptium-FixReallyStupidTypos'

This commit is contained in:
SLAwww 2016-03-25 16:18:13 +02:00
commit 9373dd28a1
12 changed files with 18 additions and 17 deletions

View File

@ -3534,7 +3534,7 @@ void CEntity::DumpSync_t(CTStream &strm, INDEX iExtensiveSyncCheck) // throw ch
(ULONG&)en_mRotation(3,1), (ULONG&)en_mRotation(3,2), (ULONG&)en_mRotation(3,3)); (ULONG&)en_mRotation(3,1), (ULONG&)en_mRotation(3,2), (ULONG&)en_mRotation(3,3));
if( en_pciCollisionInfo == NULL) { if( en_pciCollisionInfo == NULL) {
strm.FPrintF_t("Collision info NULL\n"); strm.FPrintF_t("Collision info NULL\n");
} else if (en_RenderType==RT_BRUSH && en_RenderType==RT_FIELDBRUSH) { } else if (en_RenderType==RT_BRUSH || en_RenderType==RT_FIELDBRUSH) {
strm.FPrintF_t("Collision info: Brush entity\n"); strm.FPrintF_t("Collision info: Brush entity\n");
} else { } else {
strm.FPrintF_t("Collision info:\n"); strm.FPrintF_t("Collision info:\n");

View File

@ -177,7 +177,7 @@ public:
GfxWrap tp_eWrapU, tp_eWrapV; // wrapping states GfxWrap tp_eWrapU, tp_eWrapV; // wrapping states
inline CTexParams(void) { Clear(); tp_bSingleMipmap = FALSE; }; inline CTexParams(void) { Clear(); tp_bSingleMipmap = FALSE; };
inline void Clear(void) { tp_iFilter = 00; tp_iAnisotropy = 0; tp_eWrapU = tp_eWrapV = (GfxWrap)NONE; }; inline void Clear(void) { tp_iFilter = 00; tp_iAnisotropy = 0; tp_eWrapU = tp_eWrapV = (GfxWrap)NONE; };
inline BOOL IsEqual( CTexParams tp) { return tp_iFilter==tp.tp_iFilter && tp_iAnisotropy==tp_iAnisotropy && inline BOOL IsEqual( CTexParams tp) { return tp_iFilter==tp.tp_iFilter && tp_iAnisotropy==tp.tp_iAnisotropy &&
tp_eWrapU==tp.tp_eWrapU && tp_eWrapV==tp.tp_eWrapV; }; tp_eWrapU==tp.tp_eWrapU && tp_eWrapV==tp.tp_eWrapV; };
}; };

View File

@ -1188,7 +1188,7 @@ void CSessionState::ProcessGameStream(void)
} }
// if it is not avaliable yet // if it is not avaliable yet
} if (res==CNetworkStream::R_BLOCKNOTRECEIVEDYET) { } else if (res==CNetworkStream::R_BLOCKNOTRECEIVEDYET) {
// finish // finish
_pfNetworkProfile.StopTimer(CNetworkProfile::PTI_SESSIONSTATE_PROCESSGAMESTREAM); _pfNetworkProfile.StopTimer(CNetworkProfile::PTI_SESSIONSTATE_PROCESSGAMESTREAM);
return; return;

View File

@ -558,7 +558,7 @@ void CTerrain::SetShadowMapsSize(INDEX iShadowMapAspect, INDEX iShadingMapAspect
tr_iShadowMapSizeAspect = -(FastLog2(tr_pixHeightMapWidth-1)-5); tr_iShadowMapSizeAspect = -(FastLog2(tr_pixHeightMapWidth-1)-5);
} }
if(GetShadingMapWidth()<32 || GetShadingMapWidth()<32) { if(GetShadingMapWidth()<32 || GetShadingMapHeight()<32) {
tr_iShadingMapSizeAspect = 0; tr_iShadingMapSizeAspect = 0;
} }

View File

@ -851,7 +851,7 @@ static void ComputerOn(void)
_ppenPlayer->GetStats(_strStatsDetails, CST_DETAIL, _ctTextCharsPerRow); _ppenPlayer->GetStats(_strStatsDetails, CST_DETAIL, _ctTextCharsPerRow);
// if end of level // if end of level
if (_ppenPlayer!=NULL && _ppenPlayer->m_bEndOfLevel || _pNetwork->IsGameFinished()) { if (_ppenPlayer->m_bEndOfLevel || _pNetwork->IsGameFinished()) {
// select statistics // select statistics
_cmtWantedType = CMT_STATISTICS; _cmtWantedType = CMT_STATISTICS;
// if not end of level // if not end of level

View File

@ -413,13 +413,13 @@ void ExportMesh_modeler(int iFaceForward) {
char fnmOut[256]; char fnmOut[256];
char *strFileName; char *strFileName;
_state = _meshEditOperations->state;
if (_meshEditOperations == NULL) { if (_meshEditOperations == NULL) {
_msg->error("Error!","Error _meshEditOperations is NULL!"); _msg->error("Error!", "Error _meshEditOperations is NULL!");
return; return;
} }
_state = _meshEditOperations->state;
_ctPntIDs = _meshEditOperations->pointCount(_state,OPLYR_FG,EDCOUNT_ALL); _ctPntIDs = _meshEditOperations->pointCount(_state,OPLYR_FG,EDCOUNT_ALL);
_ctPolIDs = _meshEditOperations->polyCount(_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"); _fpOutput = fopen(fnmOut, "w");
if (_fpOutput==NULL) { if (_fpOutput==NULL) {
msgbox_modeler(_xpanf, "Can't open file!"); msgbox_modeler(_xpanf, "Can't open file!");
return;
} }
// write the mesh header // write the mesh header

View File

@ -1185,7 +1185,7 @@ void JoinNetworkGame(void)
_pNetwork->ga_strRequiredMod.ScanF("%250[^\\]\\%s", &strModName, &strModURL); _pNetwork->ga_strRequiredMod.ScanF("%250[^\\]\\%s", &strModName, &strModURL);
_fnmModSelected = CTString(strModName); _fnmModSelected = CTString(strModName);
_strModURLSelected = strModURL; _strModURLSelected = strModURL;
if (_strModURLSelected="") { if (_strModURLSelected == "") {
_strModURLSelected = "http://www.croteam.com/mods/Old"; _strModURLSelected = "http://www.croteam.com/mods/Old";
} }
_strModServerSelected.PrintF("%s:%s", _pGame->gam_strJoinAddress, _pShell->GetValue("net_iPort")); _strModServerSelected.PrintF("%s:%s", _pGame->gam_strJoinAddress, _pShell->GetValue("net_iPort"));

View File

@ -694,7 +694,7 @@ void CMainFrame::OnCancelMode()
{ {
// switches out of eventual direct screen mode // switches out of eventual direct screen mode
CWorldEditorView *pwndView = (CWorldEditorView *)GetActiveView(); CWorldEditorView *pwndView = (CWorldEditorView *)GetActiveView();
if (pwndView = NULL) { if (pwndView != NULL) {
// get the MDIChildFrame of active window // get the MDIChildFrame of active window
CChildFrame *pfrChild = (CChildFrame *)pwndView->GetParentFrame(); CChildFrame *pfrChild = (CChildFrame *)pwndView->GetParentFrame();
ASSERT(pfrChild!=NULL); ASSERT(pfrChild!=NULL);
@ -707,7 +707,7 @@ void CMainFrame::OnInitMenu(CMenu* pMenu)
{ {
// switches out of eventual direct screen mode // switches out of eventual direct screen mode
CWorldEditorView *pwndView = (CWorldEditorView *)GetActiveView(); CWorldEditorView *pwndView = (CWorldEditorView *)GetActiveView();
if (pwndView = NULL) { if (pwndView != NULL) {
// get the MDIChildFrame of active window // get the MDIChildFrame of active window
CChildFrame *pfrChild = (CChildFrame *)pwndView->GetParentFrame(); CChildFrame *pfrChild = (CChildFrame *)pwndView->GetParentFrame();
ASSERT(pfrChild!=NULL); ASSERT(pfrChild!=NULL);

View File

@ -1851,8 +1851,8 @@ CEntity *CPropertyComboBar::GetSelectedEntityPtr(void)
CPropertyID *ppidProperty = GetSelectedProperty(); CPropertyID *ppidProperty = GetSelectedProperty();
// if there is valid property selected // if there is valid property selected
if( (ppidProperty == NULL) || if( (ppidProperty == NULL) ||
(ppidProperty->pid_eptType != CEntityProperty::EPT_ENTITYPTR) || ((ppidProperty->pid_eptType != CEntityProperty::EPT_ENTITYPTR) &&
(ppidProperty->pid_eptType != CEntityProperty::EPT_PARENT) ) (ppidProperty->pid_eptType != CEntityProperty::EPT_PARENT)) )
{ {
return NULL; return NULL;
} }

View File

@ -135,8 +135,8 @@ void CToolTipWnd::OnPaint()
dc.SetTextColor( colInk); dc.SetTextColor( colInk);
CDC *pDC = GetDC(); CDC *pDC = GetDC();
if (pDC == NULL) return;
pDC->SelectObject( &theApp.m_FixedFont); pDC->SelectObject( &theApp.m_FixedFont);
if( pDC == NULL) return;
INDEX ctLines = GetLinesCount(); INDEX ctLines = GetLinesCount();
for(INDEX iLine = 0; iLine<ctLines; iLine++) for(INDEX iLine = 0; iLine<ctLines; iLine++)

View File

@ -582,7 +582,6 @@ inline BOOL CValuesForPrimitive::operator==(const CValuesForPrimitive &vfpToComp
(vfp_plPrimitive == vfpToCompare.vfp_plPrimitive) && (vfp_plPrimitive == vfpToCompare.vfp_plPrimitive) &&
(vfp_ttTriangularisationType == vfpToCompare.vfp_ttTriangularisationType) && (vfp_ttTriangularisationType == vfpToCompare.vfp_ttTriangularisationType) &&
(vfp_bDummy == vfpToCompare.vfp_bDummy) && (vfp_bDummy == vfpToCompare.vfp_bDummy) &&
(vfp_ptPrimitiveType == vfpToCompare.vfp_ptPrimitiveType) &&
(vfp_bAutoCreateMipBrushes == vfpToCompare.vfp_bAutoCreateMipBrushes) && (vfp_bAutoCreateMipBrushes == vfpToCompare.vfp_bAutoCreateMipBrushes) &&
(vfp_colSectorsColor == vfpToCompare.vfp_colSectorsColor) && (vfp_colSectorsColor == vfpToCompare.vfp_colSectorsColor) &&
(vfp_colPolygonsColor == vfpToCompare.vfp_colPolygonsColor) && (vfp_colPolygonsColor == vfpToCompare.vfp_colPolygonsColor) &&

View File

@ -9030,9 +9030,10 @@ void CWorldEditorView::OnPreviousMipBrush()
{ {
CMainFrame* pMainFrame = STATIC_DOWNCAST(CMainFrame, AfxGetMainWnd()); CMainFrame* pMainFrame = STATIC_DOWNCAST(CMainFrame, AfxGetMainWnd());
CEntity *penBrush = pMainFrame->m_CSGDesitnationCombo.GetSelectedBrushEntity(); 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 // remember current time as time when last mip brushing option has been used
_fLastMipBrushingOptionUsed = _pTimer->GetRealTimeTick(); _fLastMipBrushingOptionUsed = _pTimer->GetRealTimeTick();