diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-12 09:31:48 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-12 09:31:48 +0200 |
commit | bef07b6353c049d71cc03c461a08fde45a8dce0b (patch) | |
tree | e88a96159a50de36049f1510a27efda237001b40 /src/vehicles/Ferry.cpp | |
parent | Merge remote-tracking branch 'upstream/lcs' into lcs (diff) | |
download | re3-bef07b6353c049d71cc03c461a08fde45a8dce0b.tar re3-bef07b6353c049d71cc03c461a08fde45a8dce0b.tar.gz re3-bef07b6353c049d71cc03c461a08fde45a8dce0b.tar.bz2 re3-bef07b6353c049d71cc03c461a08fde45a8dce0b.tar.lz re3-bef07b6353c049d71cc03c461a08fde45a8dce0b.tar.xz re3-bef07b6353c049d71cc03c461a08fde45a8dce0b.tar.zst re3-bef07b6353c049d71cc03c461a08fde45a8dce0b.zip |
Diffstat (limited to 'src/vehicles/Ferry.cpp')
-rw-r--r-- | src/vehicles/Ferry.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vehicles/Ferry.cpp b/src/vehicles/Ferry.cpp index 32a8ac4f..1ae1fb6c 100644 --- a/src/vehicles/Ferry.cpp +++ b/src/vehicles/Ferry.cpp @@ -201,6 +201,11 @@ void CFerry::Init(void* pInstancePtr) void CFerry::InitFerrys(void) { + printf("init ferrys\n"); +#ifdef GTA_NETWORK + if (gIsMultiplayerGame) + SetupForMultiplayer(); +#endif if (!mspInst) Init(nil); for (int i = 0; i < NUM_FERRIES; i++) @@ -348,6 +353,10 @@ void CFerry::Render(void) void CFerry::RenderAllRemaning(void) { +#ifdef GTA_NETWORK + if (gIsMultiplayerGame) + return; +#endif for (int i = 0; i < NUM_FERRIES; i++) { CFerry* pFerry = GetFerry(i); if (pFerry) { @@ -802,6 +811,7 @@ void CFerry::SetupForMultiplayer(void) { for (int i = 0; i < NUM_FERRIES; i++) mspInst->m_apFerries[i] = nil; + printf("setting up the ferrys for multiplayer\n"); CStreaming::SetModelIsDeletable(MI_FERRY); } |