X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fkeybinder.qc;h=e0696961074118aa31ad1fab7963b2099cc3f268;hp=5c2b898f21acdd93e4d9eaa5d8d33753fd6dc001;hb=244f8292cf03247e90bf1a0c3fee1f491f6b93a0;hpb=7bac2174aa921d4e66172ccf2f9648b43fca2a8a diff --git a/qcsrc/menu/xonotic/keybinder.qc b/qcsrc/menu/xonotic/keybinder.qc index 5c2b898f2..e06969610 100644 --- a/qcsrc/menu/xonotic/keybinder.qc +++ b/qcsrc/menu/xonotic/keybinder.qc @@ -1,5 +1,5 @@ #ifdef INTERFACE -CLASS(XonoticKeyBinder) EXTENDS(XonoticListBox) +CLASS(XonoticKeyBinder, XonoticListBox) METHOD(XonoticKeyBinder, configureXonoticKeyBinder, void(entity)) ATTRIB(XonoticKeyBinder, rowsPerItem, int, 1) METHOD(XonoticKeyBinder, drawListBoxItem, void(entity, float, vector, float)) @@ -65,7 +65,7 @@ void Xonotic_KeyBinds_Read() entity makeXonoticKeyBinder() { entity me; - me = spawnXonoticKeyBinder(); + me = NEW(XonoticKeyBinder); me.configureXonoticKeyBinder(me); return me; }