Skip to content

Commit edce029

Browse files
committed
Merge branch 'master' of https://github.com/SuperTux/supertux
2 parents 2513e84 + b88fc5d commit edce029

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed
-1.54 KB
Binary file not shown.
-61.8 KB
Binary file not shown.

src/control/keyboard_manager.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,12 @@ KeyboardManager::process_menu_key_event(const SDL_KeyboardEvent& event)
220220
break;
221221
default:
222222
if (m_keyboard_config.m_keymap.count(event.keysym.sym) == 0)
223-
{
224223
return;
225-
}
224+
225+
// Forbid events from players other than the first in menus
226+
if (m_keyboard_config.m_keymap[event.keysym.sym].player != 0)
227+
return;
228+
226229
control = m_keyboard_config.m_keymap[event.keysym.sym].control;
227230
break;
228231
}

src/object/trampoline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Trampoline::Trampoline(const ReaderMapping& mapping) :
4141

4242
//Check if this trampoline is not portable
4343
if (mapping.get("portable", portable)) {
44-
if (!portable) {
44+
if (!portable && !mapping.get("sprite", m_sprite_name)) {
4545
//we need another sprite
4646
m_sprite_name = "images/objects/trampoline/trampoline_fix.sprite";
4747
m_default_sprite_name = m_sprite_name;

0 commit comments

Comments
 (0)