File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
src/platform/w3dengine/client Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -208,16 +208,9 @@ void W3DPropBuffer::Draw_Props(RenderInfoClass &rinfo)
208208 if (m_props[i].is_visible && m_props[i].render_obj != nullptr ) {
209209 if (g_thePlayerList == nullptr || g_thePartitionManager == nullptr ) {
210210 m_props[i].shroud_status = SHROUDED_NONE;
211- }
212-
213- if (m_props[i].shroud_status == SHROUDED_INVALID) {
214- int index;
215211
216- if (g_thePlayerList != nullptr ) {
217- index = g_thePlayerList->Get_Local_Player ()->Get_Player_Index ();
218- } else {
219- index = 0 ;
220- }
212+ } else if (m_props[i].shroud_status == SHROUDED_INVALID) {
213+ const int index = g_thePlayerList->Get_Local_Player ()->Get_Player_Index ();
221214
222215 m_props[i].shroud_status =
223216 g_thePartitionManager->Get_Prop_Shroud_Status_For_Player (index, &m_props[i].position );
You can’t perform that action at this time.
0 commit comments