@@ -400,12 +400,7 @@ class GameOnDemandSoundFetcher: public OnDemandSoundFetcher
400400};
401401
402402
403- // before 1.8 there isn't a "integer interface", only float
404- #if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8)
405- typedef f32 SamplerLayer_t;
406- #else
407403typedef s32 SamplerLayer_t;
408- #endif
409404
410405
411406class GameGlobalShaderConstantSetter : public IShaderConstantSetter
@@ -513,38 +508,20 @@ class GameGlobalShaderConstantSetter : public IShaderConstantSetter
513508
514509 float eye_position_array[3 ];
515510 v3f epos = m_client->getEnv ().getLocalPlayer ()->getEyePosition ();
516- #if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8)
517- eye_position_array[0 ] = epos.X ;
518- eye_position_array[1 ] = epos.Y ;
519- eye_position_array[2 ] = epos.Z ;
520- #else
521511 epos.getAs3Values (eye_position_array);
522- #endif
523512 m_eye_position_pixel.set (eye_position_array, services);
524513 m_eye_position_vertex.set (eye_position_array, services);
525514
526515 if (m_client->getMinimap ()) {
527516 float minimap_yaw_array[3 ];
528517 v3f minimap_yaw = m_client->getMinimap ()->getYawVec ();
529- #if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8)
530- minimap_yaw_array[0 ] = minimap_yaw.X ;
531- minimap_yaw_array[1 ] = minimap_yaw.Y ;
532- minimap_yaw_array[2 ] = minimap_yaw.Z ;
533- #else
534518 minimap_yaw.getAs3Values (minimap_yaw_array);
535- #endif
536519 m_minimap_yaw.set (minimap_yaw_array, services);
537520 }
538521
539522 float camera_offset_array[3 ];
540523 v3f offset = intToFloat (m_client->getCamera ()->getOffset (), BS);
541- #if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8)
542- camera_offset_array[0 ] = offset.X ;
543- camera_offset_array[1 ] = offset.Y ;
544- camera_offset_array[2 ] = offset.Z ;
545- #else
546524 offset.getAs3Values (camera_offset_array);
547- #endif
548525 m_camera_offset_pixel.set (camera_offset_array, services);
549526 m_camera_offset_vertex.set (camera_offset_array, services);
550527
0 commit comments