File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream
Generals/Code/GameEngine/Source/GameClient/MessageStream Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -692,6 +692,31 @@ MetaMapRec *MetaMap::getMetaMapRec(GameMessage::Type t)
692
692
map->m_usableIn = COMMANDUSABLE_GAME;
693
693
}
694
694
}
695
+
696
+ #if defined(RTS_DEBUG)
697
+ {
698
+ // Is useful for Generals and Zero Hour.
699
+ MetaMapRec *map = TheMetaMap->getMetaMapRec (GameMessage::MSG_META_DEMO_REMOVE_PREREQ);
700
+ if (map->m_key == MK_NONE)
701
+ {
702
+ map->m_key = MK_P;
703
+ map->m_transition = DOWN;
704
+ map->m_modState = ALT;
705
+ map->m_usableIn = COMMANDUSABLE_GAME;
706
+ }
707
+ }
708
+ {
709
+ // Is useful for Generals and Zero Hour.
710
+ MetaMapRec *map = TheMetaMap->getMetaMapRec (GameMessage::MSG_META_DEMO_FREE_BUILD);
711
+ if (map->m_key == MK_NONE)
712
+ {
713
+ map->m_key = MK_B;
714
+ map->m_transition = DOWN;
715
+ map->m_modState = ALT;
716
+ map->m_usableIn = COMMANDUSABLE_GAME;
717
+ }
718
+ }
719
+ #endif // defined(RTS_DEBUG)
695
720
}
696
721
697
722
// -------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -754,6 +754,31 @@ MetaMapRec *MetaMap::getMetaMapRec(GameMessage::Type t)
754
754
map->m_usableIn = COMMANDUSABLE_GAME;
755
755
}
756
756
}
757
+
758
+ #if defined(RTS_DEBUG)
759
+ {
760
+ // Is useful for Generals and Zero Hour.
761
+ MetaMapRec *map = TheMetaMap->getMetaMapRec (GameMessage::MSG_META_DEMO_REMOVE_PREREQ);
762
+ if (map->m_key == MK_NONE)
763
+ {
764
+ map->m_key = MK_P;
765
+ map->m_transition = DOWN;
766
+ map->m_modState = ALT;
767
+ map->m_usableIn = COMMANDUSABLE_GAME;
768
+ }
769
+ }
770
+ {
771
+ // Is useful for Generals and Zero Hour.
772
+ MetaMapRec *map = TheMetaMap->getMetaMapRec (GameMessage::MSG_META_DEMO_FREE_BUILD);
773
+ if (map->m_key == MK_NONE)
774
+ {
775
+ map->m_key = MK_B;
776
+ map->m_transition = DOWN;
777
+ map->m_modState = ALT;
778
+ map->m_usableIn = COMMANDUSABLE_GAME;
779
+ }
780
+ }
781
+ #endif // defined(RTS_DEBUG)
757
782
}
758
783
759
784
// -------------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments