Changeset 57 for trunk/Forms/UFormMain.pas
- Timestamp:
- Dec 25, 2022, 9:29:43 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r55 r57 191 191 procedure TFormMain.AShowMapExecute(Sender: TObject); 192 192 begin 193 if not Assigned(FormMap) then FormMap := TFormMap.Create( nil);193 if not Assigned(FormMap) then FormMap := TFormMap.Create(Self); 194 194 FormMap.Show; 195 195 end; … … 225 225 procedure TFormMain.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState 226 226 ); 227 const 228 KeyF11 = 112; 229 var 230 I: Integer; 227 231 begin 228 232 Engine.KeyBoard.KeyState[Key] := False; 233 {$IFDEF DEBUG} 234 if Key = KeyF11 then begin 235 // Destroy first alive player 236 for I := 0 to Engine.Players.Count - 1 do 237 with Engine.Players[I] do begin 238 if not Exploded then begin 239 Energy := -100; 240 Break; 241 end; 242 end; 243 end; 244 {$ENDIF} 229 245 end; 230 246
Note:
See TracChangeset
for help on using the changeset viewer.