equal
deleted
inserted
replaced
14 static byte _ship_depot_direction; |
14 static byte _ship_depot_direction; |
15 |
15 |
16 static void CcBuildDocks(bool success, uint tile, uint32 p1, uint32 p2) |
16 static void CcBuildDocks(bool success, uint tile, uint32 p1, uint32 p2) |
17 { |
17 { |
18 if (success) { |
18 if (success) { |
19 SndPlayTileFx(0, tile); |
19 SndPlayTileFx(SND_02_SPLAT, tile); |
20 ResetObjectToPlace(); |
20 ResetObjectToPlace(); |
21 } |
21 } |
22 } |
22 } |
23 |
23 |
24 static void CcBuildCanal(bool success, uint tile, uint32 p1, uint32 p2) |
24 static void CcBuildCanal(bool success, uint tile, uint32 p1, uint32 p2) |
25 { |
25 { |
26 if (success) { SndPlayTileFx(0, tile); } |
26 if (success) SndPlayTileFx(SND_02_SPLAT, tile); |
27 } |
27 } |
28 |
28 |
29 |
29 |
30 static void PlaceDocks_Dock(uint tile) |
30 static void PlaceDocks_Dock(uint tile) |
31 { |
31 { |
277 ResetObjectToPlace(); |
277 ResetObjectToPlace(); |
278 break; |
278 break; |
279 case 3: |
279 case 3: |
280 case 4: |
280 case 4: |
281 _ship_depot_direction = e->click.widget - 3; |
281 _ship_depot_direction = e->click.widget - 3; |
282 SndPlayFx(0x13); |
282 SndPlayFx(SND_15_BEEP); |
283 UpdateDocksDirection(); |
283 UpdateDocksDirection(); |
284 SetWindowDirty(w); |
284 SetWindowDirty(w); |
285 break; |
285 break; |
286 } |
286 } |
287 } break; |
287 } break; |