mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 11:00:38 +02:00
entity_t and brush_t now converted to idEditorEntity and idEditorBrush
This commit is contained in:
@@ -1093,14 +1093,14 @@ void CLightDlg::SaveLightInfo( const idDict *differences ) {
|
||||
if ( com_editorActive ) {
|
||||
|
||||
// used from Radiant
|
||||
for ( brush_t *b = selected_brushes.next; b && b != &selected_brushes; b = b->next ) {
|
||||
for ( idEditorBrush *b = selected_brushes.next; b && b != &selected_brushes; b = b->next ) {
|
||||
if ( ( b->owner->eclass->nShowFlags & ECLASS_LIGHT ) && !b->entityModel ) {
|
||||
if ( differences ) {
|
||||
lightInfo.ToDictFromDifferences( &b->owner->epairs, differences );
|
||||
} else {
|
||||
lightInfo.ToDict( &b->owner->epairs );
|
||||
}
|
||||
Brush_Build( b );
|
||||
b->Brush_Build();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1233,9 +1233,9 @@ void CLightDlg::OnOK() {
|
||||
CDialog::OnOK();
|
||||
}
|
||||
|
||||
entity_t *SingleLightSelected() {
|
||||
idEditorEntity *SingleLightSelected() {
|
||||
if ( QE_SingleBrush( true, true ) ) {
|
||||
brush_t *b = selected_brushes.next;
|
||||
idEditorBrush *b = selected_brushes.next;
|
||||
if ( ( b->owner->eclass->nShowFlags & ECLASS_LIGHT ) && !b->entityModel ) {
|
||||
return b->owner;
|
||||
}
|
||||
@@ -1252,7 +1252,7 @@ void CLightDlg::UpdateDialog( bool updateChecks )
|
||||
|
||||
if ( com_editorActive ) {
|
||||
// used from Radiant
|
||||
entity_t *e = SingleLightSelected();
|
||||
idEditorEntity *e = SingleLightSelected();
|
||||
if ( e ) {
|
||||
lightInfo.FromDict(&e->epairs);
|
||||
lightInfoOriginal.FromDict(&e->epairs); //our original copy of the values that we compare against for apply differences
|
||||
@@ -1260,7 +1260,7 @@ void CLightDlg::UpdateDialog( bool updateChecks )
|
||||
} else {
|
||||
//find the last brush belonging to the last entity selected and use that as the source
|
||||
e = NULL;
|
||||
for ( brush_t *b = selected_brushes.next ; b != &selected_brushes ; b = b->next ) {
|
||||
for ( idEditorBrush *b = selected_brushes.next ; b != &selected_brushes ; b = b->next ) {
|
||||
if ( ( b->owner->eclass->nShowFlags & ECLASS_LIGHT ) && !b->entityModel ) {
|
||||
e = b->owner;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user