mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 18:19:19 +02:00
cab controls active state visualization support, cab control initialization on cab change fix
This commit is contained in:
7
Train.h
7
Train.h
@@ -158,11 +158,14 @@ class TTrain {
|
||||
void update_sounds_runningnoise( sound_source &Sound );
|
||||
void update_sounds_radio();
|
||||
inline
|
||||
end cab_to_end() const {
|
||||
end cab_to_end( int const End ) const {
|
||||
return (
|
||||
iCabn == 2 ?
|
||||
End == 2 ?
|
||||
end::rear :
|
||||
end::front ); }
|
||||
inline
|
||||
end cab_to_end() const {
|
||||
return cab_to_end( iCabn ); }
|
||||
|
||||
// command handlers
|
||||
// NOTE: we're currently using universal handlers and static handler map but it may be beneficial to have these implemented on individual class instance basis
|
||||
|
||||
Reference in New Issue
Block a user