Commit Graph
81 Commits
Author SHA1 Message Date
Apollon Oikonomopoulos 42df06e4f8 TWP: increase maximum "give" distance
Commit 7dd6c4ba62 (TWP: Fix give minimum distance, 2024-03-07)
increased the maximum distance for allowing objects to be given from 15
to 30. This works fine for most of the game, but there is at least one
instance where 30 prevents a crucial transaction: Ransome exchanging
wallets with Willie. This is visible in the following debug log:

  Give 'ransomeWallet' to 'willie'
  exec(currentActor,9,ransomeWallet,willie)
  noun1.inInventory: YES and noun1.touchable: YES nowalk: NO
  walk to obj willie: (1533.000000,91.000000)
  walk to obj ransome: 1503.000000,91.000000, 1
  Give 'ransomeWallet' to 'willie'
  actorArrived
  actor arrived with facing 1
  call actorArrived callback
  actorArrived: exec sentence
  actorArrived: noun2 min_dist: 30.265491 > 30.000000 ?
  translate(@30087): Willie
  sayline: ransome, @24882
  talking ransome audio stopped
  Give 'ransomeWallet' to 'willie'
  talking ransome: @24882
  Load lip RANSOME_24882.lip
  Lip RANSOME_24882.lip loaded
  loadActorSpeech RANSOME_24882.ogg
  talking ransome audio id: 250087, dur: 1821
  sayLine 'He is too far away.'

Here we can see Ransome moving within 30.27 distance units from Willie
without being obstructed by anything, however this is not close enough
for "give" to work. Let's bump MIN_GIVE_DIST to 35, which fixes the
issue.
2024-07-26 13:15:51 +02:00
scemino c49960fed5 TWP: Add Goto next/previous object 2024-05-05 21:15:17 +02:00
scemino fa0dc616ea TWP: Fix incorrect text color during dialog 2024-04-21 08:47:48 +02:00
scemino 0df84a921f TWP: JANITORIAL: Fix code formatting 2024-04-20 09:47:40 +02:00
scemino c4e6a8f7a0 TWP: Actors should keep a min distance between them 2024-04-19 18:26:58 +02:00
scemino 2df5878162 TWP: Fix actor keeping mouth open again (bug #15075) 2024-04-18 10:03:00 +02:00
scemino f495f6f6cb TWP: Fix actor keeping mouth open (bug #15075) 2024-04-17 21:46:24 +02:00
scemino f26e249aa4 TWP: Fix some warnings with gcc 2024-04-07 22:05:09 +02:00
scemino 410b41d3f1 TWP: Fix consider inspecting the 'sqget' function. The return value is not always used. PVS-Studio V1071 2024-04-05 21:54:53 +02:00
scemino 001dad733f TWP: Use const when necessary 2024-03-24 22:49:08 +01:00
scemino 922ba51bf8 TWP: Fix missing animations 2024-03-24 12:09:19 +01:00
scemino 7c4f21d7a8 TWP: When actor turns he should stand 2024-03-24 12:09:19 +01:00
scemino 6fb05dd8ac TWP: Fix identical statements in object.cpp. PVS-Studio V581 2024-03-18 21:50:00 +01:00
scemino fffeb8d472 TWP: Fix not all members of Object are initialized. PVS-Studio V730 2024-03-17 20:50:05 +01:00
scemino 2a25921de0 TWP: Fix head is disappearing sometimes 2024-03-17 13:09:32 +01:00
scemino 5e107bb2d5 TWP: Fix motors still updated when disabled 2024-03-17 13:09:32 +01:00
scemino 1686f90201 TWP: Fix inventoryScroll can assert 2024-03-17 13:09:31 +01:00
scemino 0a7bc21952 TWP: Fix Ransome should have his makeup 2024-03-17 13:09:31 +01:00
Eugene Sandulenko ecbec954d9 Revert "TWP: Pull the engine by request"
This reverts commit 16e2606853.
2024-03-16 22:12:44 +01:00
Eugene Sandulenko 16e2606853 TWP: Pull the engine by request 2024-03-07 21:06:51 +01:00
scemino 7dd6c4ba62 TWP: Fix give minimum distance 2024-03-07 20:08:26 +01:00
scemino 0f94a8257c TWP: Fix strange walk path 2024-03-07 20:08:26 +01:00
scemino 4df291584f TWP: Fix regression in notes and phone book 2024-03-07 20:08:26 +01:00
scemino f0866ab187 TWP: Remove static ids 2024-03-07 20:08:26 +01:00
scemino 2ef2f29ea0 TWP: Minimize the include dependency 2024-03-07 20:08:26 +01:00
scemino 7503b204c3 TWP: Use CLIP instead of clamp 2024-03-07 20:08:26 +01:00
scemino b8eea416a2 TWP: Fix various compilation issues 2024-03-07 20:08:26 +01:00
scemino 305fe167f4 TWP: Fix Windows compilations 2024-03-07 20:08:26 +01:00
scemino a943ad0a27 TWP: Fix formatting, includes order and this 2024-03-07 20:08:26 +01:00
scemino e98219abde TWP: Rename g_engine by g_twp 2024-03-07 20:08:26 +01:00
scemino df1f1a1d1c TWP: Fix regression actorEnter and actorExit should be called 2024-03-07 20:08:26 +01:00
scemino c7ac09c116 TWP: Actor should stop walking when exiting room 2024-03-07 20:08:26 +01:00
scemino 4cb6a24c06 TWP: Fix regression, actors should not have their alpha reset 2024-03-07 20:08:26 +01:00
scemino bce1313ad6 TWP: Fix several bugs
- actorDistanceWithin if actors is not in the same room
- add STOP_LOOPING const
- call actorEnter and actorExit
- fix loadDialog
- add name to cutscene
- annoying kid should not stop music when talking with him
2024-03-07 20:08:26 +01:00
scemino 2852c14f0b TWP: Clean code 2024-03-07 20:08:26 +01:00
scemino 3545c138bd TWP: Use inventory_slot 2024-03-07 20:08:26 +01:00
scemino 49273670d5 TWP: Fix Franklin icon should be a ghost 2024-03-07 20:08:26 +01:00
scemino 9eb8fe627e TWP: Fix scaleTo 2024-03-07 20:08:26 +01:00
scemino c8d7559169 TWP: Fix several issues 2024-03-07 20:08:26 +01:00
scemino ee6736d7b6 TWP: Fix leaks with ggpack and savegames 2024-03-07 20:08:26 +01:00
scemino 4f2d991170 TWP: Fix various leaks 2024-03-07 20:08:26 +01:00
scemino 61f0357120 TWP: Fix leaks with motors 2024-03-07 20:08:26 +01:00
scemino d1b5955fb4 TWP: Fix leaks with sounds 2024-03-07 20:08:26 +01:00
scemino 6cb55e0fec TWP: Fix leaks with object nodes 2024-03-07 20:08:26 +01:00
scemino ad0dd458b6 TWP: Fix leaks with objects/actors 2024-03-07 20:08:26 +01:00
scemino 47bf594d73 TWP: Fix layer leaks 2024-03-07 20:08:26 +01:00
scemino e2d956f398 TWP: Fix room leaks 2024-03-07 20:08:26 +01:00
scemino afcea85246 TWP: Add debug channels 2024-03-07 20:08:26 +01:00
scemino 087679d6f9 TWP: Fix cursor text in closeup room 2024-03-07 20:08:26 +01:00
scemino 38e58778b6 TWP: Fix talking timings 2024-03-07 20:08:26 +01:00