mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 18:09:18 +02:00
reformat: parameters can be made const
This commit is contained in:
@@ -413,7 +413,7 @@ namespace {
|
||||
// doesn't match a recognised animation keyword — these are driven by event-
|
||||
// triggered SetRotate/SetTranslate at runtime, which would silently break if
|
||||
// the model were batched.
|
||||
bool anim_type_unsafe_for_instancing( TAnimType a ) {
|
||||
bool anim_type_unsafe_for_instancing(const TAnimType a ) {
|
||||
switch( a ) {
|
||||
case TAnimType::at_Rotate:
|
||||
case TAnimType::at_RotateXYZ:
|
||||
@@ -650,7 +650,7 @@ int TAnimModel::TerrainCount()
|
||||
return pModel ? pModel->TerrainCount() : 0;
|
||||
}
|
||||
|
||||
TSubModel * TAnimModel::TerrainSquare(int n)
|
||||
TSubModel * TAnimModel::TerrainSquare(const int n)
|
||||
{ // pobieranie wskaźników do pierwszego submodelu
|
||||
return pModel ? pModel->TerrainSquare(n) : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user